Patch - Fixes object list item labeling issue - V14.5.34

Avoids duplicated ImGui labels in the object list by adding the entity ID to the item label.

Also, corrects ImGui layout issues, preventing window overlap.
This commit is contained in:
2025-10-10 17:53:49 +02:00
parent 295b7354d9
commit 526b38eb4f
4 changed files with 7 additions and 6 deletions

View File

@@ -614,7 +614,8 @@ void imguiManager::WidgetObjectWindow()
{
std::string name = identity->GetName();
if (name.empty()) name = "Entity #" + std::to_string(identity->GetId());
// avoid same label by adding the ID at the end
name += "##" + std::to_string(identity->GetId());
bool isSelected = (entity->GetID() == m_selected_entity_id);
if (SEL(name.c_str(), isSelected))
{