Fixed crash in gizmo drawer when selection is invalid
This commit is contained in:
@@ -143,6 +143,11 @@ bool GizmoDrawer::IsEntityInSelection(Nuake::Entity entity)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!m_Editor->Selection.Entity.IsValid())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
using namespace Nuake;
|
using namespace Nuake;
|
||||||
const Nuake::Entity selectedEntity = m_Editor->Selection.Entity;
|
const Nuake::Entity selectedEntity = m_Editor->Selection.Entity;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user