Browse Source

Re-fixes terrain edit dragging without breaking paint actions

Areloch 4 years ago
parent
commit
e11c5a7a02
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Engine/source/gui/worldEditor/terrainEditor.cpp

+ 6 - 0
Engine/source/gui/worldEditor/terrainEditor.cpp

@@ -1897,6 +1897,12 @@ void TerrainEditor::on3DMouseDragged(const Gui3DMouseEvent & event)
       selChanged = gMouse != gLastMouse;
    }
 
+   if (String::compare(getCurrentAction(), "paintMaterial") != 0)
+   {
+      if (mMouseDown)
+         return;
+   }
+
    mCurrentAction->process( mMouseBrush, event, true, TerrainAction::Update );
 }