Merge pull request #462 from Areloch/TerrainEditDragFixup

Re-fixes terrain edit dragging without breaking paint actions
This commit is contained in:
Brian Roberts 2021-01-27 15:11:56 -06:00 committed by GitHub
commit c2c959122e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 );
}