diff options
Diffstat (limited to 'editor/imgui.cpp')
-rw-r--r-- | editor/imgui.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp index b548d527..30f99d1b 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -373,8 +373,10 @@ void app::do_popup_menu() add_inspector(std::exchange(_popup_target, {})); else { - char buf[32]; - entity_inspector_name(buf, sizeof buf, e.id); + char buf2[32], buf3[128], buf[sizeof buf2 + sizeof buf3 - 1]; + entity_inspector_name(buf2, sizeof buf2, e.id); + entity_friendly_name(buf3, sizeof buf3, e); + std::snprintf(buf, sizeof buf, "%s###%s", buf3, buf2); ImGui::SetWindowFocus(buf); ImGui::SetWindowCollapsed(buf, false); } |