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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user