diff options
author | Dahlia Trimble | 2009-04-03 08:45:32 +0000 |
---|---|---|
committer | Dahlia Trimble | 2009-04-03 08:45:32 +0000 |
commit | 5f4cab6ed3efe394cb9cc3383bd64ee184fb3dc7 (patch) | |
tree | 57b7a61944bb3701bee9e12dd0fce52fa135ed87 /OpenSim | |
parent | Fix a nullref when compiling non-LSL scripts (diff) | |
download | opensim-SC_OLD-5f4cab6ed3efe394cb9cc3383bd64ee184fb3dc7.zip opensim-SC_OLD-5f4cab6ed3efe394cb9cc3383bd64ee184fb3dc7.tar.gz opensim-SC_OLD-5f4cab6ed3efe394cb9cc3383bd64ee184fb3dc7.tar.bz2 opensim-SC_OLD-5f4cab6ed3efe394cb9cc3383bd64ee184fb3dc7.tar.xz |
fix an error in hollow cylinder face number calculation
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Physics/Meshing/PrimMesher.cs | 3 |
1 files changed, 2 insertions, 1 deletions
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 | |||
924 | if (hasProfileCut) | 924 | if (hasProfileCut) |
925 | this.faceNumbers.Add(0); | 925 | this.faceNumbers.Add(0); |
926 | for (int i = 0; i < numHollowVerts; i++) | 926 | for (int i = 0; i < numHollowVerts; i++) |
927 | this.faceNumbers.Add(faceNum++); | 927 | //this.faceNumbers.Add(faceNum++); |
928 | this.faceNumbers.Add(hollowSides < 5 ? faceNum++ : faceNum); | ||
928 | this.bottomFaceNumber = faceNum++; | 929 | this.bottomFaceNumber = faceNum++; |
929 | if (hasHollow && hasProfileCut) | 930 | if (hasHollow && hasProfileCut) |
930 | this.faceNumbers.Add(faceNum++); | 931 | this.faceNumbers.Add(faceNum++); |