瀏覽代碼

Merge pull request #1326 from Azaezel/alpha41/forestfix

fix forest editor failing to pop up a create new
Brian Roberts 11 月之前
父節點
當前提交
5f6fe212a7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/forest/editor/forestEditorCtrl.cpp

+ 1 - 1
Engine/source/forest/editor/forestEditorCtrl.cpp

@@ -160,7 +160,7 @@ void ForestEditorCtrl::get3DCursor( GuiCursor *&cursor,
 
 void ForestEditorCtrl::on3DMouseDown( const Gui3DMouseEvent &evt )
 {   
-   if ( !mForest || !updateActiveForest( true ) )
+   if ( !mForest && !updateActiveForest( true ) )
       return;
 
    if ( mTool )