mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
No longer crash when selected entity disappears
This commit is contained in:
@@ -49,8 +49,10 @@ namespace GlitchyEditor.EditWindows
|
||||
|
||||
if (_entityHierarchyWindow.SelectionSize == 1)
|
||||
{
|
||||
Entity entity = _entityHierarchyWindow.GetSelectedEntity(0);
|
||||
ShowComponents(entity);
|
||||
Result<Entity> entityResult = _entityHierarchyWindow.GetSelectedEntity(0);
|
||||
|
||||
if (entityResult case .Ok(let selectedEntity))
|
||||
ShowComponents(selectedEntity);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user