From 5f4cab6ed3efe394cb9cc3383bd64ee184fb3dc7 Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Fri, 3 Apr 2009 08:45:32 +0000 Subject: fix an error in hollow cylinder face number calculation --- OpenSim/Region/Physics/Meshing/PrimMesher.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Physics/Meshing/PrimMesher.cs b/OpenSim/Region/Physics/Meshing/PrimMesher.cs index 9e43994..c397290 100644 --- a/OpenSim/Region/Physics/Meshing/PrimMesher.cs +++ b/OpenSim/Region/Physics/Meshing/PrimMesher.cs @@ -924,7 +924,8 @@ namespace PrimMesher if (hasProfileCut) this.faceNumbers.Add(0); for (int i = 0; i < numHollowVerts; i++) - this.faceNumbers.Add(faceNum++); + //this.faceNumbers.Add(faceNum++); + this.faceNumbers.Add(hollowSides < 5 ? faceNum++ : faceNum); this.bottomFaceNumber = faceNum++; if (hasHollow && hasProfileCut) this.faceNumbers.Add(faceNum++); -- cgit v1.1