From 31666f91123b4feb53689baa6f177a1bdd8998fb Mon Sep 17 00:00:00 2001 From: sippeangelo Date: Tue, 2 Feb 2016 21:47:31 +0100 Subject: [PATCH] fixup! Unique ids for entity nodes in the editor to prevent weird behaviour when multiple entities have the same name --- src/Engine/Editor/EditorGUI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Engine/Editor/EditorGUI.cpp b/src/Engine/Editor/EditorGUI.cpp index 399040bb..488dfc46 100644 --- a/src/Engine/Editor/EditorGUI.cpp +++ b/src/Engine/Editor/EditorGUI.cpp @@ -225,8 +225,10 @@ bool EditorGUI::drawEntityNode(EntityWrapper entity) entityChangeParent(m_CurrentlyDragging, entity); m_CurrentlyDragging = EntityWrapper::Invalid; } + ImGui::PopID(); return true; } else { + ImGui::PopID(); return false; } }