diff options
Diffstat (limited to 'linden/indra/newview/lltoolbrush.cpp')
-rw-r--r-- | linden/indra/newview/lltoolbrush.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/linden/indra/newview/lltoolbrush.cpp b/linden/indra/newview/lltoolbrush.cpp index 89cb0b6..0291eab 100644 --- a/linden/indra/newview/lltoolbrush.cpp +++ b/linden/indra/newview/lltoolbrush.cpp | |||
@@ -96,7 +96,7 @@ LLToolBrushLand::LLToolBrushLand() | |||
96 | mGotHover(FALSE), | 96 | mGotHover(FALSE), |
97 | mBrushSelected(FALSE) | 97 | mBrushSelected(FALSE) |
98 | { | 98 | { |
99 | mBrushIndex = gSavedSettings.getS32("RadioLandBrushSize"); | 99 | mBrushIndex = gSavedSettings.getS32("LandBrushSize"); |
100 | } | 100 | } |
101 | 101 | ||
102 | void LLToolBrushLand::modifyLandAtPointGlobal(const LLVector3d &pos_global, | 102 | void LLToolBrushLand::modifyLandAtPointGlobal(const LLVector3d &pos_global, |
@@ -154,7 +154,7 @@ void LLToolBrushLand::modifyLandAtPointGlobal(const LLVector3d &pos_global, | |||
154 | regionp->forceUpdate(); | 154 | regionp->forceUpdate(); |
155 | 155 | ||
156 | // tell the simulator what we've done | 156 | // tell the simulator what we've done |
157 | F32 seconds = 1.0f / gFPSClamped; | 157 | F32 seconds = (1.0f / gFPSClamped) * gSavedSettings.getF32("LandBrushForce"); |
158 | F32 x_pos = (F32)pos_region.mV[VX]; | 158 | F32 x_pos = (F32)pos_region.mV[VX]; |
159 | F32 y_pos = (F32)pos_region.mV[VY]; | 159 | F32 y_pos = (F32)pos_region.mV[VY]; |
160 | U8 brush_size = (U8)mBrushIndex; | 160 | U8 brush_size = (U8)mBrushIndex; |
@@ -242,7 +242,7 @@ void LLToolBrushLand::modifyLandInSelectionGlobal() | |||
242 | 242 | ||
243 | min_region.clamp(0.f, regionp->getWidth()); | 243 | min_region.clamp(0.f, regionp->getWidth()); |
244 | max_region.clamp(0.f, regionp->getWidth()); | 244 | max_region.clamp(0.f, regionp->getWidth()); |
245 | F32 seconds = 1.0f; | 245 | F32 seconds = gSavedSettings.getF32("LandBrushForce"); |
246 | 246 | ||
247 | LLSurface &land = regionp->getLand(); | 247 | LLSurface &land = regionp->getLand(); |
248 | char action = E_LAND_LEVEL; | 248 | char action = E_LAND_LEVEL; |
@@ -251,21 +251,23 @@ void LLToolBrushLand::modifyLandInSelectionGlobal() | |||
251 | case 0: | 251 | case 0: |
252 | // // average toward mStartingZ | 252 | // // average toward mStartingZ |
253 | action = E_LAND_LEVEL; | 253 | action = E_LAND_LEVEL; |
254 | seconds = 1.f; | 254 | seconds *= 0.25f; |
255 | break; | 255 | break; |
256 | case 1: | 256 | case 1: |
257 | action = E_LAND_RAISE; | 257 | action = E_LAND_RAISE; |
258 | seconds *= 0.25f; | ||
258 | break; | 259 | break; |
259 | case 2: | 260 | case 2: |
260 | action = E_LAND_LOWER; | 261 | action = E_LAND_LOWER; |
262 | seconds *= 0.25f; | ||
261 | break; | 263 | break; |
262 | case 3: | 264 | case 3: |
263 | action = E_LAND_SMOOTH; | 265 | action = E_LAND_SMOOTH; |
264 | seconds = 10.f; | 266 | seconds *= 5.0f; |
265 | break; | 267 | break; |
266 | case 4: | 268 | case 4: |
267 | action = E_LAND_NOISE; | 269 | action = E_LAND_NOISE; |
268 | seconds = 0.5f; | 270 | seconds *= 0.5f; |
269 | break; | 271 | break; |
270 | case 5: | 272 | case 5: |
271 | action = E_LAND_REVERT; | 273 | action = E_LAND_REVERT; |
@@ -445,7 +447,7 @@ void LLToolBrushLand::render() | |||
445 | spot.mdV[VX] = floor( spot.mdV[VX] + 0.5 ); | 447 | spot.mdV[VX] = floor( spot.mdV[VX] + 0.5 ); |
446 | spot.mdV[VY] = floor( spot.mdV[VY] + 0.5 ); | 448 | spot.mdV[VY] = floor( spot.mdV[VY] + 0.5 ); |
447 | 449 | ||
448 | mBrushIndex = gSavedSettings.getS32("RadioLandBrushSize"); | 450 | mBrushIndex = gSavedSettings.getS32("LandBrushSize"); |
449 | region_list_t regions; | 451 | region_list_t regions; |
450 | determineAffectedRegions(regions, spot); | 452 | determineAffectedRegions(regions, spot); |
451 | 453 | ||