mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 23:54:35 +00:00
remove filtes on misbehaving brushes.
correct range defaults
This commit is contained in:
parent
149f6cc5bf
commit
218caea9e8
3 changed files with 2 additions and 11 deletions
|
|
@ -525,9 +525,6 @@ void BrushAdjustHeightAction::process(Selection * sel, const Gui3DMouseEvent & e
|
||||||
// and record the starting heights
|
// and record the starting heights
|
||||||
for(U32 i = 0; i < sel->size(); i++)
|
for(U32 i = 0; i < sel->size(); i++)
|
||||||
{
|
{
|
||||||
if (!isValid((*sel)[i]))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
mTerrainEditor->getUndoSel()->add((*sel)[i]);
|
mTerrainEditor->getUndoSel()->add((*sel)[i]);
|
||||||
(*sel)[i].mStartHeight = (*sel)[i].mHeight;
|
(*sel)[i].mStartHeight = (*sel)[i].mHeight;
|
||||||
}
|
}
|
||||||
|
|
@ -654,9 +651,6 @@ void SmoothHeightAction::process(Selection * sel, const Gui3DMouseEvent &, bool
|
||||||
// linear
|
// linear
|
||||||
for(U32 i = 0; i < sel->size(); i++)
|
for(U32 i = 0; i < sel->size(); i++)
|
||||||
{
|
{
|
||||||
if (!isValid((*sel)[i]))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
(*sel)[i].mHeight += (avgHeight - (*sel)[i].mHeight) * mTerrainEditor->mSmoothFactor * (*sel)[i].mWeight;
|
(*sel)[i].mHeight += (avgHeight - (*sel)[i].mHeight) * mTerrainEditor->mSmoothFactor * (*sel)[i].mWeight;
|
||||||
mTerrainEditor->setGridInfo((*sel)[i]);
|
mTerrainEditor->setGridInfo((*sel)[i]);
|
||||||
}
|
}
|
||||||
|
|
@ -701,9 +695,6 @@ void SmoothSlopeAction::process(Selection * sel, const Gui3DMouseEvent &, bool s
|
||||||
F32 goalHeight;
|
F32 goalHeight;
|
||||||
for(U32 i = 0; i < sel->size(); i++)
|
for(U32 i = 0; i < sel->size(); i++)
|
||||||
{
|
{
|
||||||
if (!isValid((*sel)[i]))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
goalHeight = avgHeight + ((*sel)[i].mGridPoint.gridPos.x - avgPos.x)*avgSlope.x +
|
goalHeight = avgHeight + ((*sel)[i].mGridPoint.gridPos.x - avgPos.x)*avgSlope.x +
|
||||||
((*sel)[i].mGridPoint.gridPos.y - avgPos.y)*avgSlope.y;
|
((*sel)[i].mGridPoint.gridPos.y - avgPos.y)*avgSlope.y;
|
||||||
(*sel)[i].mHeight += (goalHeight - (*sel)[i].mHeight) * (*sel)[i].mWeight;
|
(*sel)[i].mHeight += (goalHeight - (*sel)[i].mHeight) * (*sel)[i].mWeight;
|
||||||
|
|
|
||||||
|
|
@ -667,7 +667,7 @@ $guiContent = new GuiControl(EWTerrainEditToolbar,EditorGuiGroup) {
|
||||||
AnchorBottom = "0";
|
AnchorBottom = "0";
|
||||||
AnchorLeft = "1";
|
AnchorLeft = "1";
|
||||||
AnchorRight = "0";
|
AnchorRight = "0";
|
||||||
text = "90.0";
|
text = "2047";
|
||||||
maxLength = "4";
|
maxLength = "4";
|
||||||
historySize = "0";
|
historySize = "0";
|
||||||
password = "0";
|
password = "0";
|
||||||
|
|
|
||||||
|
|
@ -461,7 +461,7 @@ $guiContent = new GuiControl(EWTerrainPainterToolbar,EditorGuiGroup) {
|
||||||
AnchorBottom = "0";
|
AnchorBottom = "0";
|
||||||
AnchorLeft = "1";
|
AnchorLeft = "1";
|
||||||
AnchorRight = "0";
|
AnchorRight = "0";
|
||||||
text = "90.0";
|
text = "2047";
|
||||||
maxLength = "4";
|
maxLength = "4";
|
||||||
historySize = "0";
|
historySize = "0";
|
||||||
password = "0";
|
password = "0";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue