mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
Merge pull request #591 from Ragora/bugfix-object-deletion-crash
* BugFix: Fix a crash that sometimes occurs when groups of of objects are deleted
This commit is contained in:
commit
e35b5f5119
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue