diff options
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/OdeScene.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs index 8cce349..32d6481 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs | |||
@@ -3444,6 +3444,9 @@ Console.WriteLine("AddPhysicsActorTaint to " + taintedprim.Name); | |||
3444 | 3444 | ||
3445 | private void SetTerrain(float[] heightMap, Vector3 pOffset) | 3445 | private void SetTerrain(float[] heightMap, Vector3 pOffset) |
3446 | { | 3446 | { |
3447 | int startTime = Util.EnvironmentTickCount(); | ||
3448 | m_log.DebugFormat("[PHYSICS]: Setting terrain for {0}", Name); | ||
3449 | |||
3447 | // this._heightmap[i] = (double)heightMap[i]; | 3450 | // this._heightmap[i] = (double)heightMap[i]; |
3448 | // dbm (danx0r) -- creating a buffer zone of one extra sample all around | 3451 | // dbm (danx0r) -- creating a buffer zone of one extra sample all around |
3449 | //_origheightmap = heightMap; | 3452 | //_origheightmap = heightMap; |
@@ -3565,6 +3568,9 @@ Console.WriteLine("AddPhysicsActorTaint to " + taintedprim.Name); | |||
3565 | RegionTerrain.Add(pOffset, GroundGeom, GroundGeom); | 3568 | RegionTerrain.Add(pOffset, GroundGeom, GroundGeom); |
3566 | TerrainHeightFieldHeights.Add(GroundGeom,_heightmap); | 3569 | TerrainHeightFieldHeights.Add(GroundGeom,_heightmap); |
3567 | } | 3570 | } |
3571 | |||
3572 | m_log.DebugFormat( | ||
3573 | "[PHYSICS]: Setting terrain for {0} took {1}ms", Name, Util.EnvironmentTickCountSubtract(startTime)); | ||
3568 | } | 3574 | } |
3569 | 3575 | ||
3570 | public override void DeleteTerrain() | 3576 | public override void DeleteTerrain() |