From c6408d214cb675e20696e44b918688378c1020bd Mon Sep 17 00:00:00 2001 From: Benualdo Date: Wed, 2 Oct 2024 22:08:43 +0200 Subject: [PATCH] Show parent adress in PropertyDebug mode only --- Editor.xml | 2 +- src/editor/ImGui/Window/ImGuiWindow.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Editor.xml b/Editor.xml index 2b63af7f0..997f8d65b 100644 --- a/Editor.xml +++ b/Editor.xml @@ -14,6 +14,6 @@ - + diff --git a/src/editor/ImGui/Window/ImGuiWindow.cpp b/src/editor/ImGui/Window/ImGuiWindow.cpp index 495293263..9eefced3a 100644 --- a/src/editor/ImGui/Window/ImGuiWindow.cpp +++ b/src/editor/ImGui/Window/ImGuiWindow.cpp @@ -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) {