* [Editor] BugFix: Fix a crash that sometimes occurs when groups of objects are deleted in the world editor.

This commit is contained in:
Robert MacGregor 2021-09-24 17:58:17 -04:00
parent 2e153e43e0
commit 12f4af51f5

View file

@ -1993,12 +1993,12 @@ void WorldEditor::on3DMouseMove(const Gui3DMouseEvent & event)
if ( !mHitObject )
{
SceneObject *hitObj = NULL;
if ( collide(event, &hitObj) && hitObj->isSelectionEnabled() && !objClassIgnored(hitObj) )
if ( collide(event, &hitObj) && !hitObj->isDeleted() && hitObj->isSelectionEnabled() && !objClassIgnored(hitObj) )
{
mHitObject = hitObj;
}
}
mLastMouseEvent = event;
}