Corrects meshmerizer profile cut angle orientation for tube type prims

0.6.0-stable
Dahlia Trimble 2008-06-30 02:08:27 +00:00
parent 08ab283b8a
commit a944ef4947
1 changed files with 7 additions and 0 deletions

View File

@ -1580,6 +1580,13 @@ namespace OpenSim.Region.Physics.Meshing
Console.WriteLine("Sphere dimple: fProfileBeginAngle: " + fProfileBeginAngle.ToString() + " fProfileEndAngle: " + fProfileEndAngle.ToString()); Console.WriteLine("Sphere dimple: fProfileBeginAngle: " + fProfileBeginAngle.ToString() + " fProfileEndAngle: " + fProfileEndAngle.ToString());
#endif #endif
} }
else if ((primShape.ProfileCurve & 0x07) == (byte)ProfileShape.Square)
{ // tube cut is offset 45 degrees from other prim types
fProfileBeginAngle += 45.0f;
fProfileEndAngle += 45.0f;
if (fProfileBeginAngle < fProfileEndAngle)
fProfileEndAngle -= 360.0;
}
// Note, that we don't want to cut out a triangle, even if this is a // Note, that we don't want to cut out a triangle, even if this is a
// good approximation for small cuts. Indeed we want to cut out an arc // good approximation for small cuts. Indeed we want to cut out an arc