Limit hollow size of physics proxy to 95%

0.6.5-rc1
Dahlia Trimble 2009-04-24 19:28:29 +00:00
parent 8fe70c826d
commit 9c13a93583
2 changed files with 4 additions and 2 deletions

View File

@ -251,6 +251,8 @@ namespace OpenSim.Region.Physics.Meshing
float profileBegin = (float)primShape.ProfileBegin * 2.0e-5f; float profileBegin = (float)primShape.ProfileBegin * 2.0e-5f;
float profileEnd = 1.0f - (float)primShape.ProfileEnd * 2.0e-5f; float profileEnd = 1.0f - (float)primShape.ProfileEnd * 2.0e-5f;
float profileHollow = (float)primShape.ProfileHollow * 2.0e-5f; float profileHollow = (float)primShape.ProfileHollow * 2.0e-5f;
if (profileHollow > 0.95f)
profileHollow = 0.95f;
int sides = 4; int sides = 4;
if ((primShape.ProfileCurve & 0x07) == (byte)ProfileShape.EquilateralTriangle) if ((primShape.ProfileCurve & 0x07) == (byte)ProfileShape.EquilateralTriangle)

View File

@ -1232,8 +1232,8 @@ namespace PrimMesher
this.profileEnd = 0.02f; this.profileEnd = 0.02f;
if (profileStart >= profileEnd) if (profileStart >= profileEnd)
this.profileStart = profileEnd - 0.02f; this.profileStart = profileEnd - 0.02f;
if (hollow > 1.0f) if (hollow > 0.99f)
this.hollow = 1.0f; this.hollow = 0.99f;
if (hollow < 0.0f) if (hollow < 0.0f)
this.hollow = 0.0f; this.hollow = 0.0f;