From 3274bc39c8e0c477485c03b31acbe3a9bde0c37e Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Mon, 9 Nov 2009 17:43:32 +0000 Subject: [PATCH] minor: remove some mono compiler warnings --- OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs | 2 ++ OpenSim/Region/Physics/Meshing/PrimMesher.cs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs b/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs index cbe73bbbe0..1e94ee2d82 100644 --- a/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs +++ b/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs @@ -347,6 +347,7 @@ namespace OpenSim.Region.Physics.BulletXPlugin { indexBase = mesh.getIndexListAsInt(); vertexBase = new Vector3[iVertexCount]; + for (int i = 0; i < iVertexCount; i++) { OpenMetaverse.Vector3 v = mesh.getVertexList()[i]; @@ -355,6 +356,7 @@ namespace OpenSim.Region.Physics.BulletXPlugin else vertexBase[i] = Vector3.Zero; } + for (int ix = 0; ix < iIndexCount; ix += 3) { int ia = indexBase[ix + 0]; diff --git a/OpenSim/Region/Physics/Meshing/PrimMesher.cs b/OpenSim/Region/Physics/Meshing/PrimMesher.cs index c7c9160fad..2a213c3d88 100644 --- a/OpenSim/Region/Physics/Meshing/PrimMesher.cs +++ b/OpenSim/Region/Physics/Meshing/PrimMesher.cs @@ -1348,7 +1348,7 @@ namespace PrimMesher float stepSize = twoPi / this.stepsPerRevolution; int step = (int)(startAngle / stepSize); - int firstStep = step; +// int firstStep = step; float angle = startAngle; bool done = false; @@ -1738,7 +1738,7 @@ namespace PrimMesher // append this layer int coordsLen = this.coords.Count; - int lastCoordsLen = coordsLen; +// int lastCoordsLen = coordsLen; newLayer.AddValue2FaceVertexIndices(coordsLen); this.coords.AddRange(newLayer.coords);