aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/PhysicsModules/Ode/OdeScene.cs4
-rw-r--r--OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs7
2 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs b/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs
index 8fe3130..144d762 100644
--- a/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs
+++ b/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs
@@ -3939,8 +3939,8 @@ namespace OpenSim.Region.PhysicsModule.ODE
3939 3939
3940 } 3940 }
3941 IntPtr HeightmapData = d.GeomHeightfieldDataCreate(); 3941 IntPtr HeightmapData = d.GeomHeightfieldDataCreate();
3942 d.GeomHeightfieldDataBuildSingle(HeightmapData, _heightmap, 0, heightmapWidth, heightmapHeight, 3942 d.GeomHeightfieldDataBuildSingle(HeightmapData, _heightmap, 0, heightmapHeight, heightmapWidth,
3943 (int)heightmapWidthSamples, (int)heightmapHeightSamples, scale, 3943 (int)heightmapHeightSamples, (int)heightmapWidthSamples, scale,
3944 offset, thickness, wrap); 3944 offset, thickness, wrap);
3945 3945
3946 d.GeomHeightfieldDataSetBounds(HeightmapData, hfmin - 1, hfmax + 1); 3946 d.GeomHeightfieldDataSetBounds(HeightmapData, hfmin - 1, hfmax + 1);
diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs b/OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs
index 41fec89..f51016c 100644
--- a/OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs
+++ b/OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs
@@ -2275,9 +2275,10 @@ namespace OpenSim.Region.PhysicsModule.ubOde
2275 2275
2276 GCHandle _heightmaphandler = GCHandle.Alloc(_heightmap, GCHandleType.Pinned); 2276 GCHandle _heightmaphandler = GCHandle.Alloc(_heightmap, GCHandleType.Pinned);
2277 2277
2278 d.GeomHeightfieldDataBuildSingle(HeightmapData, _heightmaphandler.AddrOfPinnedObject(), 0, heightmapWidth , heightmapHeight, 2278 d.GeomHeightfieldDataBuildSingle(HeightmapData, _heightmaphandler.AddrOfPinnedObject(), 0,
2279 (int)heightmapWidthSamples, (int)heightmapHeightSamples, scale, 2279 heightmapHeight, heightmapWidth ,
2280 offset, thickness, wrap); 2280 (int)heightmapHeightSamples, (int)heightmapWidthSamples, scale,
2281 offset, thickness, wrap);
2281 2282
2282 d.GeomHeightfieldDataSetBounds(HeightmapData, hfmin - 1, hfmax + 1); 2283 d.GeomHeightfieldDataSetBounds(HeightmapData, hfmin - 1, hfmax + 1);
2283 2284