mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
Limit hollow size of physics proxy to 95%
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user