diff options
Diffstat (limited to '')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSTerrainManager.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSTerrainManager.cs b/OpenSim/Region/Physics/BulletSPlugin/BSTerrainManager.cs index 9067a2c..50f917a 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSTerrainManager.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSTerrainManager.cs | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | 2 | * Copyright (c) Contributors, http://opensimulator.org/ |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
@@ -136,7 +136,7 @@ public sealed class BSTerrainManager : IDisposable | |||
136 | { | 136 | { |
137 | DetailLog("{0},BSTerrainManager.CreateInitialGroundPlaneAndTerrain,region={1}", BSScene.DetailLogZero, m_physicsScene.RegionName); | 137 | DetailLog("{0},BSTerrainManager.CreateInitialGroundPlaneAndTerrain,region={1}", BSScene.DetailLogZero, m_physicsScene.RegionName); |
138 | // The ground plane is here to catch things that are trying to drop to negative infinity | 138 | // The ground plane is here to catch things that are trying to drop to negative infinity |
139 | BulletShape groundPlaneShape = m_physicsScene.PE.CreateGroundPlaneShape(BSScene.GROUNDPLANE_ID, 1f, BSParam.TerrainCollisionMargin); | 139 | BulletShape groundPlaneShape = m_physicsScene.PE.CreateGroundPlaneShape(BSScene.GROUNDPLANE_ID, 1f, BSParam.TerrainCollisionMargin); |
140 | Vector3 groundPlaneAltitude = new Vector3(0f, 0f, BSParam.TerrainGroundPlane); | 140 | Vector3 groundPlaneAltitude = new Vector3(0f, 0f, BSParam.TerrainGroundPlane); |
141 | m_groundPlane = m_physicsScene.PE.CreateBodyWithDefaultMotionState(groundPlaneShape, | 141 | m_groundPlane = m_physicsScene.PE.CreateBodyWithDefaultMotionState(groundPlaneShape, |
142 | BSScene.GROUNDPLANE_ID, groundPlaneAltitude, Quaternion.Identity); | 142 | BSScene.GROUNDPLANE_ID, groundPlaneAltitude, Quaternion.Identity); |
@@ -240,9 +240,6 @@ public sealed class BSTerrainManager : IDisposable | |||
240 | // Called during taint-time. | 240 | // Called during taint-time. |
241 | private void UpdateTerrain(uint id, float[] heightMap, Vector3 minCoords, Vector3 maxCoords) | 241 | private void UpdateTerrain(uint id, float[] heightMap, Vector3 minCoords, Vector3 maxCoords) |
242 | { | 242 | { |
243 | DetailLog("{0},BSTerrainManager.UpdateTerrain,call,id={1},minC={2},maxC={3}", | ||
244 | BSScene.DetailLogZero, id, minCoords, maxCoords); | ||
245 | |||
246 | // Find high and low points of passed heightmap. | 243 | // Find high and low points of passed heightmap. |
247 | // The min and max passed in is usually the area objects can be in (maximum | 244 | // The min and max passed in is usually the area objects can be in (maximum |
248 | // object height, for instance). The terrain wants the bounding box for the | 245 | // object height, for instance). The terrain wants the bounding box for the |
@@ -262,6 +259,9 @@ public sealed class BSTerrainManager : IDisposable | |||
262 | minCoords.Z = minZ; | 259 | minCoords.Z = minZ; |
263 | maxCoords.Z = maxZ; | 260 | maxCoords.Z = maxZ; |
264 | 261 | ||
262 | DetailLog("{0},BSTerrainManager.UpdateTerrain,call,id={1},minC={2},maxC={3}", | ||
263 | BSScene.DetailLogZero, id, minCoords, maxCoords); | ||
264 | |||
265 | Vector3 terrainRegionBase = new Vector3(minCoords.X, minCoords.Y, 0f); | 265 | Vector3 terrainRegionBase = new Vector3(minCoords.X, minCoords.Y, 0f); |
266 | 266 | ||
267 | lock (m_terrains) | 267 | lock (m_terrains) |
@@ -270,7 +270,7 @@ public sealed class BSTerrainManager : IDisposable | |||
270 | if (m_terrains.TryGetValue(terrainRegionBase, out terrainPhys)) | 270 | if (m_terrains.TryGetValue(terrainRegionBase, out terrainPhys)) |
271 | { | 271 | { |
272 | // There is already a terrain in this spot. Free the old and build the new. | 272 | // There is already a terrain in this spot. Free the old and build the new. |
273 | DetailLog("{0},BSTErrainManager.UpdateTerrain:UpdateExisting,call,id={1},base={2},minC={3},maxC={4}", | 273 | DetailLog("{0},BSTerrainManager.UpdateTerrain:UpdateExisting,call,id={1},base={2},minC={3},maxC={4}", |
274 | BSScene.DetailLogZero, id, terrainRegionBase, minCoords, maxCoords); | 274 | BSScene.DetailLogZero, id, terrainRegionBase, minCoords, maxCoords); |
275 | 275 | ||
276 | // Remove old terrain from the collection | 276 | // Remove old terrain from the collection |