Skip to content

Commit 114b174

Browse files
committed
Updated Pipe
1 parent 2940711 commit 114b174

File tree

6 files changed

+9
-11
lines changed

6 files changed

+9
-11
lines changed

Libs/AST/Include/AST/Components/CModule.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace rift::ast
2828
P_PROP(target)
2929
RiftModuleTarget target = RiftModuleTarget::Executable;
3030

31-
P_PROP(dependencies)
31+
P_PROP(dependencies, p::PF_Edit)
3232
p::TArray<p::Tag> dependencies;
3333
};
3434
} // namespace rift::ast

Libs/AST/Include/AST/Components/CNamespace.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace rift::ast
1111
{
1212
P_STRUCT(CNamespace)
1313

14-
P_PROP(name);
14+
P_PROP(name, p::PF_Edit);
1515
p::Tag name;
1616

1717

Libs/Editor/Src/Tools/MemoryDebugger.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include <Pipe/Core/String.h>
66
#include <Pipe/Memory/Alloc.h>
7+
#include <Pipe/Memory/HeapArena.h>
78
#include <Pipe/Memory/MemoryStats.h>
89
#include <PipeMath.h>
910
#include <UI/UI.h>
@@ -32,7 +33,7 @@ namespace rift::editor
3233
if (UI::Begin("Memory", &open))
3334
{
3435
String label;
35-
auto* stats = GetHeapStats();
36+
auto* stats = GetHeapArena().GetStats();
3637
UI::Text(Strings::Format("Used: {}", Strings::ParseMemorySize(stats->used)));
3738

3839
if (UI::BeginChild("Allocations"))

Libs/UI/Include/UI/Widgets.h

-3
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,6 @@ namespace rift::UI
113113

114114
bool MutableText(p::StringView label, p::String& text, ImGuiInputTextFlags flags = 0);
115115

116-
void HelpTooltip(p::StringView text, float delay = 1.f);
117-
void HelpMarker(p::StringView text);
118-
119116
bool DrawFilterWithHint(ImGuiTextFilter& filter, const char* label = "Filter (inc,-exc)",
120117
const char* hint = "...", float width = 0.0f);
121118

Libs/UI/Src/Inspection.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,11 @@ namespace rift::UI
242242

243243
if (p::HasTypeFlags(type, p::TF_Struct))
244244
{
245-
void* instance = handle.GetPtr();
246-
p::TView<p::TypeProperty> properties = p::GetTypeProperties(type);
247-
for (const auto& prop : properties)
245+
void* instance = handle.GetPtr();
246+
p::TView<const p::TypeProperty*> properties = p::GetTypeProperties(type);
247+
for (const auto* prop : properties)
248248
{
249-
InspectProperty({instance, type, prop});
249+
InspectProperty({instance, type, *prop});
250250
}
251251
}
252252
else if (handle.IsArray())

0 commit comments

Comments
 (0)