Skip to content

Commit

Permalink
Updated Pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
muit committed Jun 30, 2024
1 parent 2940711 commit 114b174
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Libs/AST/Include/AST/Components/CModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace rift::ast
P_PROP(target)
RiftModuleTarget target = RiftModuleTarget::Executable;

P_PROP(dependencies)
P_PROP(dependencies, p::PF_Edit)
p::TArray<p::Tag> dependencies;
};
} // namespace rift::ast
2 changes: 1 addition & 1 deletion Libs/AST/Include/AST/Components/CNamespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace rift::ast
{
P_STRUCT(CNamespace)

P_PROP(name);
P_PROP(name, p::PF_Edit);
p::Tag name;


Expand Down
3 changes: 2 additions & 1 deletion Libs/Editor/Src/Tools/MemoryDebugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <Pipe/Core/String.h>
#include <Pipe/Memory/Alloc.h>
#include <Pipe/Memory/HeapArena.h>
#include <Pipe/Memory/MemoryStats.h>
#include <PipeMath.h>
#include <UI/UI.h>
Expand Down Expand Up @@ -32,7 +33,7 @@ namespace rift::editor
if (UI::Begin("Memory", &open))
{
String label;
auto* stats = GetHeapStats();
auto* stats = GetHeapArena().GetStats();
UI::Text(Strings::Format("Used: {}", Strings::ParseMemorySize(stats->used)));

if (UI::BeginChild("Allocations"))
Expand Down
3 changes: 0 additions & 3 deletions Libs/UI/Include/UI/Widgets.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ namespace rift::UI

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

void HelpTooltip(p::StringView text, float delay = 1.f);
void HelpMarker(p::StringView text);

bool DrawFilterWithHint(ImGuiTextFilter& filter, const char* label = "Filter (inc,-exc)",
const char* hint = "...", float width = 0.0f);

Expand Down
8 changes: 4 additions & 4 deletions Libs/UI/Src/Inspection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,11 @@ namespace rift::UI

if (p::HasTypeFlags(type, p::TF_Struct))
{
void* instance = handle.GetPtr();
p::TView<p::TypeProperty> properties = p::GetTypeProperties(type);
for (const auto& prop : properties)
void* instance = handle.GetPtr();
p::TView<const p::TypeProperty*> properties = p::GetTypeProperties(type);
for (const auto* prop : properties)
{
InspectProperty({instance, type, prop});
InspectProperty({instance, type, *prop});
}
}
else if (handle.IsArray())
Expand Down

0 comments on commit 114b174

Please sign in to comment.