Browse Source

fix forest editor failing to pop up a create new
reminder note for if switches in c++, it it fails once in an or evaluation, that's it. it does not try other portions

AzaezelX 11 tháng trước cách đây
mục cha
commit
99bcf7ca3e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 )