diff options
author | Dr Scofield | 2008-09-16 07:19:22 +0000 |
---|---|---|
committer | Dr Scofield | 2008-09-16 07:19:22 +0000 |
commit | 03e3f88059908675652ec3da3b267bc04bab6c37 (patch) | |
tree | c46dac28d3f93b44cebff046bed8e1e18d17e9c5 /OpenSim/Region/Environment/Modules/World/Terrain/Tests | |
parent | Finish up OSSL enable/disable options in XEngine. (diff) | |
download | opensim-SC-03e3f88059908675652ec3da3b267bc04bab6c37.zip opensim-SC-03e3f88059908675652ec3da3b267bc04bab6c37.tar.gz opensim-SC-03e3f88059908675652ec3da3b267bc04bab6c37.tar.bz2 opensim-SC-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 'OpenSim/Region/Environment/Modules/World/Terrain/Tests')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Terrain/Tests/TerrainTest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/Tests/TerrainTest.cs b/OpenSim/Region/Environment/Modules/World/Terrain/Tests/TerrainTest.cs index 61ebc5c..eaa674e 100644 --- a/OpenSim/Region/Environment/Modules/World/Terrain/Tests/TerrainTest.cs +++ b/OpenSim/Region/Environment/Modules/World/Terrain/Tests/TerrainTest.cs | |||
@@ -40,14 +40,14 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.Tests | |||
40 | TerrainChannel x = new TerrainChannel(256, 256); | 40 | TerrainChannel x = new TerrainChannel(256, 256); |
41 | ITerrainPaintableEffect effect = new RaiseSphere(); | 41 | ITerrainPaintableEffect effect = new RaiseSphere(); |
42 | 42 | ||
43 | effect.PaintEffect(x, 128.0, 128.0, 50, 0.1); | 43 | effect.PaintEffect(x, 128.0, 128.0, 100, 0.1); |
44 | Assert.That(x[128, 128] > 0.0, "Raise brush not raising values."); | 44 | Assert.That(x[128, 128] > 0.0, "Raise brush not raising values."); |
45 | Assert.That(x[0, 128] > 0.0, "Raise brush lowering edge values."); | 45 | Assert.That(x[0, 128] > 0.0, "Raise brush lowering edge values."); |
46 | 46 | ||
47 | x = new TerrainChannel(256, 256); | 47 | x = new TerrainChannel(256, 256); |
48 | effect = new LowerSphere(); | 48 | effect = new LowerSphere(); |
49 | 49 | ||
50 | effect.PaintEffect(x, 128.0, 128.0, 50, 0.1); | 50 | effect.PaintEffect(x, 128.0, 128.0, 100, 0.1); |
51 | Assert.That(x[128, 128] < 0.0, "Lower not lowering values."); | 51 | Assert.That(x[128, 128] < 0.0, "Lower not lowering values."); |
52 | Assert.That(x[0, 128] < 0.0, "Lower brush affecting edge values."); | 52 | Assert.That(x[0, 128] < 0.0, "Lower brush affecting edge values."); |
53 | } | 53 | } |