浏览代码

Merge pull request #462 from Areloch/TerrainEditDragFixup

Re-fixes terrain edit dragging without breaking paint actions
Brian Roberts 4 年之前
父节点
当前提交
c2c959122e
共有 1 个文件被更改,包括 6 次插入0 次删除
  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 );
 }