aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Physics/Meshing/Meshmerizer.cs2
-rw-r--r--OpenSim/Region/Physics/Meshing/PrimMesher.cs4
2 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
index 1d1067c..3e14fc4 100644
--- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
+++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
@@ -251,6 +251,8 @@ namespace OpenSim.Region.Physics.Meshing
251 float profileBegin = (float)primShape.ProfileBegin * 2.0e-5f; 251 float profileBegin = (float)primShape.ProfileBegin * 2.0e-5f;
252 float profileEnd = 1.0f - (float)primShape.ProfileEnd * 2.0e-5f; 252 float profileEnd = 1.0f - (float)primShape.ProfileEnd * 2.0e-5f;
253 float profileHollow = (float)primShape.ProfileHollow * 2.0e-5f; 253 float profileHollow = (float)primShape.ProfileHollow * 2.0e-5f;
254 if (profileHollow > 0.95f)
255 profileHollow = 0.95f;
254 256
255 int sides = 4; 257 int sides = 4;
256 if ((primShape.ProfileCurve & 0x07) == (byte)ProfileShape.EquilateralTriangle) 258 if ((primShape.ProfileCurve & 0x07) == (byte)ProfileShape.EquilateralTriangle)
diff --git a/OpenSim/Region/Physics/Meshing/PrimMesher.cs b/OpenSim/Region/Physics/Meshing/PrimMesher.cs
index c397290..ca16b63 100644
--- a/OpenSim/Region/Physics/Meshing/PrimMesher.cs
+++ b/OpenSim/Region/Physics/Meshing/PrimMesher.cs
@@ -1232,8 +1232,8 @@ namespace PrimMesher
1232 this.profileEnd = 0.02f; 1232 this.profileEnd = 0.02f;
1233 if (profileStart >= profileEnd) 1233 if (profileStart >= profileEnd)
1234 this.profileStart = profileEnd - 0.02f; 1234 this.profileStart = profileEnd - 0.02f;
1235 if (hollow > 1.0f) 1235 if (hollow > 0.99f)
1236 this.hollow = 1.0f; 1236 this.hollow = 0.99f;
1237 if (hollow < 0.0f) 1237 if (hollow < 0.0f)
1238 this.hollow = 0.0f; 1238 this.hollow = 0.0f;
1239 1239