Re-fixes terrain edit dragging without breaking paint actions

This commit is contained in:
Areloch 2021-01-27 15:10:20 -06:00
parent e2f706cd94
commit e11c5a7a02

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