From 8a154dac185f813a0c28176fa505db43c0905273 Mon Sep 17 00:00:00 2001 From: kj16609 Date: Wed, 29 Jan 2025 23:44:35 -0500 Subject: [PATCH] Reverts back to old rendering method for objects in the object list viewer --- src/editor/src/gui/core.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/editor/src/gui/core.cpp b/src/editor/src/gui/core.cpp index 7bdffc4..339f492 100644 --- a/src/editor/src/gui/core.cpp +++ b/src/editor/src/gui/core.cpp @@ -151,16 +151,15 @@ namespace fgl::engine::gui ZoneScoped; ImGui::Begin( OBJECT_TREE_VIEW_NAME ); - itterateGameObjectNode( info, info.game_objects ); + // itterateGameObjectNode( info, info.game_objects ); - /* for ( OctTreeNodeLeaf* leaf : info.game_objects.getAllLeafs() ) { for ( GameObject& entity : *leaf ) { ImGui::PushID( entity.getId() ); - if ( ImGui::Selectable( entity.getName().c_str() ) ) + if ( ImGui::Selectable( entity.getName().c_str(), selected_object == &entity ) ) { selected_object = &entity; } @@ -168,7 +167,6 @@ namespace fgl::engine::gui ImGui::PopID(); } } - */ ImGui::End(); }