diff options
author | UbitUmarov | 2015-08-19 19:55:24 +0100 |
---|---|---|
committer | UbitUmarov | 2015-08-19 19:55:24 +0100 |
commit | ac83525bdef7ce1ae00ff1286f17bdb0f96daa42 (patch) | |
tree | 3595e60ac93cc293389bc52efe800786ba52ae83 /OpenSim/Region | |
parent | funny bug (diff) | |
download | opensim-SC-ac83525bdef7ce1ae00ff1286f17bdb0f96daa42.zip opensim-SC-ac83525bdef7ce1ae00ff1286f17bdb0f96daa42.tar.gz opensim-SC-ac83525bdef7ce1ae00ff1286f17bdb0f96daa42.tar.bz2 opensim-SC-ac83525bdef7ce1ae00ff1286f17bdb0f96daa42.tar.xz |
another funny bug (mine this time)
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs index f2b21a3..6612e97 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs | |||
@@ -2326,7 +2326,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2326 | 2326 | ||
2327 | d.RFromAxisAndAngle(out R, v3.X, v3.Y, v3.Z, angle); | 2327 | d.RFromAxisAndAngle(out R, v3.X, v3.Y, v3.Z, angle); |
2328 | d.GeomSetRotation(GroundGeom, ref R); | 2328 | d.GeomSetRotation(GroundGeom, ref R); |
2329 | d.GeomSetPosition(GroundGeom, pOffset.X + (float)Constants.RegionSize * 0.5f, pOffset.Y + (float)Constants.RegionSize * 0.5f, 0); | 2329 | d.GeomSetPosition(GroundGeom, pOffset.X + WorldExtents.X * 0.5f, pOffset.Y + WorldExtents.Y * 0.5f, 0); |
2330 | RegionTerrain.Add(pOffset, GroundGeom); | 2330 | RegionTerrain.Add(pOffset, GroundGeom); |
2331 | TerrainHeightFieldHeights.Add(GroundGeom, _heightmap); | 2331 | TerrainHeightFieldHeights.Add(GroundGeom, _heightmap); |
2332 | TerrainHeightFieldHeightsHandlers.Add(GroundGeom, _heightmaphandler); | 2332 | TerrainHeightFieldHeightsHandlers.Add(GroundGeom, _heightmaphandler); |
@@ -2436,7 +2436,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2436 | 2436 | ||
2437 | // geom_name_map[GroundGeom] = "Terrain"; | 2437 | // geom_name_map[GroundGeom] = "Terrain"; |
2438 | 2438 | ||
2439 | d.GeomSetPosition(GroundGeom, pOffset.X + (float)Constants.RegionSize * 0.5f, pOffset.Y + (float)Constants.RegionSize * 0.5f, 0); | 2439 | d.GeomSetPosition(GroundGeom, pOffset.X + WorldExtents.X * 0.5f, pOffset.Y + WorldExtents.Y * 0.5f, 0); |
2440 | RegionTerrain.Add(pOffset, GroundGeom); | 2440 | RegionTerrain.Add(pOffset, GroundGeom); |
2441 | TerrainHeightFieldHeights.Add(GroundGeom, _heightmap); | 2441 | TerrainHeightFieldHeights.Add(GroundGeom, _heightmap); |
2442 | TerrainHeightFieldHeightsHandlers.Add(GroundGeom, _heightmaphandler); | 2442 | TerrainHeightFieldHeightsHandlers.Add(GroundGeom, _heightmaphandler); |