mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 05:01:53 +00:00
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:
@@ -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>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user