ソースを参照

Merge pull request #591 from Ragora/bugfix-object-deletion-crash

* BugFix: Fix a crash that sometimes occurs when groups of of objects are deleted
Jeff Hutchinson 4 年 前
コミット
e35b5f5119
1 ファイル変更2 行追加2 行削除
  1. 2 2
      Engine/source/gui/worldEditor/worldEditor.cpp

+ 2 - 2
Engine/source/gui/worldEditor/worldEditor.cpp

@@ -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;
 }