fix error in hull point indexing

user_profiles
dahlia 2013-05-18 13:11:22 -07:00
parent 477bee6468
commit e65d1e459e
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ namespace OpenSim.Region.Physics.Meshing
int count = cnt == 0 ? 256 : cnt; int count = cnt == 0 ? 256 : cnt;
List<Vector3> hull = new List<Vector3>(); List<Vector3> hull = new List<Vector3>();
for (int i = 0; i < cnt; i++) for (int i = 0; i < count; i++)
{ {
ushort uX = Utils.BytesToUInt16(posBytes, posNdx); posNdx += 2; ushort uX = Utils.BytesToUInt16(posBytes, posNdx); posNdx += 2;
ushort uY = Utils.BytesToUInt16(posBytes, posNdx); posNdx += 2; ushort uY = Utils.BytesToUInt16(posBytes, posNdx); posNdx += 2;