aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/LowerSphere.cs
diff options
context:
space:
mode:
authorDr Scofield2008-09-16 07:19:22 +0000
committerDr Scofield2008-09-16 07:19:22 +0000
commit03e3f88059908675652ec3da3b267bc04bab6c37 (patch)
treec46dac28d3f93b44cebff046bed8e1e18d17e9c5 /OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/LowerSphere.cs
parentFinish up OSSL enable/disable options in XEngine. (diff)
downloadopensim-SC_OLD-03e3f88059908675652ec3da3b267bc04bab6c37.zip
opensim-SC_OLD-03e3f88059908675652ec3da3b267bc04bab6c37.tar.gz
opensim-SC_OLD-03e3f88059908675652ec3da3b267bc04bab6c37.tar.bz2
opensim-SC_OLD-03e3f88059908675652ec3da3b267bc04bab6c37.tar.xz
From: mike pitman <pitman@us.ibm.com>
New patch (terrainedit2.patch) is attached that passes unit tests ( and in fact supplies the new unit test to pass..:) The previous failure was due to the change of the brush size to be linear instead of exponential, and the fact that the test parameters were assuming the exponentional brush size. This patch also removes dependency on 'duration' argument for adjustment step size. This should address the widely differing reports of instability with terrain editing. Note: 'doing this right' implies ultimately reading the parameters from the ini file, which this patch does not do.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/LowerSphere.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/LowerSphere.cs b/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/LowerSphere.cs
index 202ab3b..08b2879 100644
--- a/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/LowerSphere.cs
+++ b/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/LowerSphere.cs
@@ -37,7 +37,8 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.PaintBrushes
37 public void PaintEffect(ITerrainChannel map, double rx, double ry, double strength, double duration) 37 public void PaintEffect(ITerrainChannel map, double rx, double ry, double strength, double duration)
38 { 38 {
39 strength = TerrainUtil.MetersToSphericalStrength(strength); 39 strength = TerrainUtil.MetersToSphericalStrength(strength);
40 40 duration = 0.03; //MCP Should be read from ini file
41
41 int x; 42 int x;
42 for (x = 0; x < map.Width; x++) 43 for (x = 0; x < map.Width; x++)
43 { 44 {