Skip to content

Commit

Permalink
Show parent adress in PropertyDebug mode only
Browse files Browse the repository at this point in the history
  • Loading branch information
Benualdo committed Oct 2, 2024
1 parent 401ac05 commit c6408d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Editor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
<Property type="Bool" name="m_gizmo.m_snapScale" flags="NotVisible" value="true"/>
<Property type="Float" name="m_gizmo.m_scaleSnap" flags="Optional" value="0.5"/>
<Property type="EnumFlagsU32" name="m_consoleOptions.m_levels" flags="Bitfield" value="Warning|Error"/>
<Property type="EnumFlagsU64" name="m_debugFlags" flags="Bitfield" value="Properties"/>
<Property type="EnumFlagsU64" name="m_debugFlags" flags="Bitfield" value=""/>
</Object>
</Root>
5 changes: 3 additions & 2 deletions src/editor/ImGui/Window/ImGuiWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,9 @@ namespace vg::editor
if (!classDesc)
return false;

// debug
ImGui::Text("Parent = 0x%016X (%s)", _object->GetParent(), _object->GetClassName());
// debug only
if (EditorOptions::get()->IsDebugPropertyVisible())
ImGui::Text("Parent = 0x%016X (%s)", _object->GetParent(), _object->GetClassName());

if (_objectContext.m_treeNodes.size() > 0)
{
Expand Down

0 comments on commit c6408d2

Please sign in to comment.