mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +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:
@@ -45,14 +45,13 @@ namespace GlitchyEditor.EditWindows
|
||||
ImGui.End();
|
||||
return;
|
||||
}
|
||||
|
||||
if(_entityHierarchyWindow.SelectedEntities.Count == 1)
|
||||
{
|
||||
Entity entity = _entityHierarchyWindow.SelectedEntities.Front;
|
||||
|
||||
if (_entityHierarchyWindow.SelectionSize == 1)
|
||||
{
|
||||
Entity entity = _entityHierarchyWindow.GetSelectedEntity(0);
|
||||
ShowComponents(entity);
|
||||
}
|
||||
|
||||
|
||||
ImGui.PopStyleVar();
|
||||
ImGui.End();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user