mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
No longer crash when selected entity disappears
This commit is contained in:
@@ -326,7 +326,7 @@ namespace GlitchyEditor.EditWindows
|
||||
if(_editor.EntityHierarchyWindow.SelectionSize == 0)
|
||||
return false;
|
||||
|
||||
Entity entity = _editor.EntityHierarchyWindow.GetSelectedEntity(-1);
|
||||
Entity entity = TrySilent!(_editor.EntityHierarchyWindow.GetSelectedEntity(-1));
|
||||
|
||||
var transformCmp = entity.GetComponent<TransformComponent>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user