fixup! Unique ids for entity nodes in the editor to prevent weird behaviour when multiple entities have the same name

This commit is contained in:
2016-02-02 21:47:31 +01:00
parent bd49bdb297
commit 31666f9112
+2
View File
@@ -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;
}
}