Limit hollow size of physics proxy to 95%
parent
8fe70c826d
commit
9c13a93583
|
@ -251,6 +251,8 @@ namespace OpenSim.Region.Physics.Meshing
|
|||
float profileBegin = (float)primShape.ProfileBegin * 2.0e-5f;
|
||||
float profileEnd = 1.0f - (float)primShape.ProfileEnd * 2.0e-5f;
|
||||
float profileHollow = (float)primShape.ProfileHollow * 2.0e-5f;
|
||||
if (profileHollow > 0.95f)
|
||||
profileHollow = 0.95f;
|
||||
|
||||
int sides = 4;
|
||||
if ((primShape.ProfileCurve & 0x07) == (byte)ProfileShape.EquilateralTriangle)
|
||||
|
|
|
@ -1232,8 +1232,8 @@ namespace PrimMesher
|
|||
this.profileEnd = 0.02f;
|
||||
if (profileStart >= profileEnd)
|
||||
this.profileStart = profileEnd - 0.02f;
|
||||
if (hollow > 1.0f)
|
||||
this.hollow = 1.0f;
|
||||
if (hollow > 0.99f)
|
||||
this.hollow = 0.99f;
|
||||
if (hollow < 0.0f)
|
||||
this.hollow = 0.0f;
|
||||
|
||||
|
|
Loading…
Reference in New Issue