reinstates torus profile zflip which was mistakenly removed in patch 1870

0.6.0-stable
Dahlia Trimble 2008-08-01 05:48:24 +00:00
parent 1d3677eb9b
commit 88fba448a1
1 changed files with 14 additions and 0 deletions

View File

@ -1556,6 +1556,20 @@ namespace OpenSim.Region.Physics.Meshing
// m_log.DebugFormat("Starting cutting of the hollow shape from the prim {1}", 0, primName);
SimpleHull cuttedHull = SimpleHull.SubtractHull(outerHull, cutHull);
if ((primShape.ProfileCurve & 0x07) == (byte)ProfileShape.Circle)
{
Quaternion zFlip = new Quaternion(new Vertex(0.0f, 0.0f, 1.0f), (float)Math.PI);
Vertex vTmp = new Vertex(0.0f, 0.0f, 0.0f);
foreach (Vertex v in cuttedHull.getVertices())
if (v != null)
{
vTmp = v * zFlip;
v.X = vTmp.X;
v.Y = vTmp.Y;
v.Z = vTmp.Z;
}
}
outerHull = cuttedHull;
}