Przeglądaj źródła

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 miesięcy temu
rodzic
commit
99bcf7ca3e
1 zmienionych plików z 1 dodań i 1 usunięć
  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 )