Addresses more problem box cut angles

0.6.0-stable
Dahlia Trimble 2008-07-07 05:42:37 +00:00
parent 063365c0dc
commit 56c6bdcb26
1 changed files with 4 additions and 6 deletions

View File

@ -435,12 +435,6 @@ namespace OpenSim.Region.Physics.Meshing
// Int16 twistTop = primShape.PathTwistBegin;
// Int16 twistBot = primShape.PathTwist;
// tweak problem cut angles
if (profileBegin > 23 && profileBegin % 50 == 0) profileBegin -= 23;
if (profileEnd > 23 && profileEnd % 50 == 0) profileEnd += 23;
#if SPAM
reportPrimParams("[BOX] " + primName, primShape);
#endif
@ -487,6 +481,10 @@ namespace OpenSim.Region.Physics.Meshing
fProfileBeginAngle += 5.0f;
if ((fProfileEndAngle + 45.0f) % 90.0f == 0.0f)
fProfileEndAngle -= 5.0f;
if (fProfileBeginAngle % 90.0f == 0.0f)
fProfileBeginAngle += 1.0f;
if (fProfileEndAngle % 90.0f == 0.0f)
fProfileEndAngle -= 1.0f;
if (fProfileBeginAngle < fProfileEndAngle)
fProfileEndAngle -= 360.0;