Keep Entities selected when switching between Play- and Edit-Mode

- Fixed the check whether all selected entities have the same parent
This commit is contained in:
Simon Lübeß
2023-11-29 14:16:36 +01:00
parent 0257b93c7b
commit b68bad5bda
4 changed files with 71 additions and 40 deletions
@@ -323,10 +323,10 @@ namespace GlitchyEditor.EditWindows
Handles.SetViewProjection(view, projection);
if(_editor.EntityHierarchyWindow.SelectedEntities.Count == 0)
if(_editor.EntityHierarchyWindow.SelectionSize == 0)
return false;
var entity = _editor.EntityHierarchyWindow.SelectedEntities.Back;
Entity entity = _editor.EntityHierarchyWindow.GetSelectedEntity(-1);
var transformCmp = entity.GetComponent<TransformComponent>();