aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Meshing/Extruder.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/Meshing/Extruder.cs')
-rw-r--r--OpenSim/Region/Physics/Meshing/Extruder.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/Meshing/Extruder.cs b/OpenSim/Region/Physics/Meshing/Extruder.cs
index ac8d81c..77bd9a4 100644
--- a/OpenSim/Region/Physics/Meshing/Extruder.cs
+++ b/OpenSim/Region/Physics/Meshing/Extruder.cs
@@ -303,7 +303,9 @@ namespace OpenSim.Region.Physics.Meshing
303 System.Console.WriteLine("Extruder: PathScaleX: " + pathScaleX.ToString() + " pathScaleY: " + pathScaleY.ToString()); 303 System.Console.WriteLine("Extruder: PathScaleX: " + pathScaleX.ToString() + " pathScaleY: " + pathScaleY.ToString());
304#endif 304#endif
305 305
306 float percentOfPath = 0.0f; 306 //float percentOfPath = 0.0f;
307 float percentOfPath = (float)pathBegin * 2.0e-5f;
308 zOffset += percentOfPath;
307 bool done = false; 309 bool done = false;
308 do // loop through the length of the path and add the layers 310 do // loop through the length of the path and add the layers
309 { 311 {
@@ -409,6 +411,9 @@ namespace OpenSim.Region.Physics.Meshing
409 xOffset += xOffsetStepIncrement; 411 xOffset += xOffsetStepIncrement;
410 yOffset += yOffsetStepIncrement; 412 yOffset += yOffsetStepIncrement;
411 zOffset += stepSize; 413 zOffset += stepSize;
414
415 if (percentOfPath > 1.0f - (float)pathEnd * 2.0e-5f)
416 done = true;
412 } 417 }
413 else done = true; 418 else done = true;
414 419