ubMeshmerizer: fix the orientation of last triangle on top/bottom faces of

UbitUmarov [2017-04-26 17:21:35]
ubMeshmerizer: fix the orientation of last triangle on top/bottom faces of
hollow cylinders plz delete contents of bin/MeshCache to remove defective
entries"
Filename
OpenSim/Region/PhysicsModules/ubOdeMeshing/PrimMesher.cs
diff --git a/OpenSim/Region/PhysicsModules/ubOdeMeshing/PrimMesher.cs b/OpenSim/Region/PhysicsModules/ubOdeMeshing/PrimMesher.cs
index 10facf2..e93175f 100644
--- a/OpenSim/Region/PhysicsModules/ubOdeMeshing/PrimMesher.cs
+++ b/OpenSim/Region/PhysicsModules/ubOdeMeshing/PrimMesher.cs
@@ -755,8 +755,8 @@ namespace PrimMesher
                             if (hollowAngles.angles[0].angle - angles.angles[i].angle < angles.angles[i].angle - hollowAngles.angles[maxJ].angle + 0.000001f)
                             {
                                 newFace.v1 = 0;
-                                newFace.v2 = numTotalVerts - maxJ - 1;
-                                newFace.v3 = numTotalVerts - 1;
+                                newFace.v2 = numTotalVerts - 1;
+                                newFace.v3 = numTotalVerts - maxJ - 1;

                                 faces.Add(newFace);
                             }
ViewGit