aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
diff options
context:
space:
mode:
authordahlia2013-05-18 13:11:22 -0700
committerdahlia2013-05-18 13:11:22 -0700
commite65d1e459eb875cb2d0d5f9aa6042c640daa19fd (patch)
tree4e0e7443a6ba8e35fe32c164763ae64b7ac37292 /OpenSim/Region/Physics/Meshing/Meshmerizer.cs
parentremove duplicate hull scaling (diff)
downloadopensim-SC_OLD-e65d1e459eb875cb2d0d5f9aa6042c640daa19fd.zip
opensim-SC_OLD-e65d1e459eb875cb2d0d5f9aa6042c640daa19fd.tar.gz
opensim-SC_OLD-e65d1e459eb875cb2d0d5f9aa6042c640daa19fd.tar.bz2
opensim-SC_OLD-e65d1e459eb875cb2d0d5f9aa6042c640daa19fd.tar.xz
fix error in hull point indexing
Diffstat (limited to 'OpenSim/Region/Physics/Meshing/Meshmerizer.cs')
-rw-r--r--OpenSim/Region/Physics/Meshing/Meshmerizer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
index a57146c..79edc12 100644
--- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
+++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
@@ -389,7 +389,7 @@ namespace OpenSim.Region.Physics.Meshing
389 int count = cnt == 0 ? 256 : cnt; 389 int count = cnt == 0 ? 256 : cnt;
390 List<Vector3> hull = new List<Vector3>(); 390 List<Vector3> hull = new List<Vector3>();
391 391
392 for (int i = 0; i < cnt; i++) 392 for (int i = 0; i < count; i++)
393 { 393 {
394 ushort uX = Utils.BytesToUInt16(posBytes, posNdx); posNdx += 2; 394 ushort uX = Utils.BytesToUInt16(posBytes, posNdx); posNdx += 2;
395 ushort uY = Utils.BytesToUInt16(posBytes, posNdx); posNdx += 2; 395 ushort uY = Utils.BytesToUInt16(posBytes, posNdx); posNdx += 2;