Reverts back to old rendering method for objects in the object list viewer

This commit is contained in:
2025-01-29 23:44:35 -05:00
parent 9b2b1525ca
commit 8a154dac18

View File

@@ -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();
}