mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Merge pull request #462 from Areloch/TerrainEditDragFixup
Re-fixes terrain edit dragging without breaking paint actions
This commit is contained in:
commit
c2c959122e
1 changed files with 6 additions and 0 deletions
|
|
@ -1897,6 +1897,12 @@ void TerrainEditor::on3DMouseDragged(const Gui3DMouseEvent & event)
|
||||||
selChanged = gMouse != gLastMouse;
|
selChanged = gMouse != gLastMouse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (String::compare(getCurrentAction(), "paintMaterial") != 0)
|
||||||
|
{
|
||||||
|
if (mMouseDown)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
mCurrentAction->process( mMouseBrush, event, true, TerrainAction::Update );
|
mCurrentAction->process( mMouseBrush, event, true, TerrainAction::Update );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue