Fixed crash in gizmo drawer when selection is invalid

This commit is contained in:
Antoine Pilote
2024-09-08 23:17:02 -04:00
parent 13c0fb414d
commit 73e0498287

View File

@@ -143,6 +143,11 @@ bool GizmoDrawer::IsEntityInSelection(Nuake::Entity entity)
return false;
}
if (!m_Editor->Selection.Entity.IsValid())
{
return false;
}
using namespace Nuake;
const Nuake::Entity selectedEntity = m_Editor->Selection.Entity;