minor: remove mono compile warning, a Vector3 can never be null since it's a struct

0.7.2-post-fixes
Justin Clark-Casey (justincc) 2011-11-29 16:31:10 +00:00
parent 7987a6da95
commit 7562e63ae6
1 changed files with 6 additions and 9 deletions

View File

@ -171,16 +171,13 @@ namespace OpenSim.Region.Physics.Meshing
foreach (Vector3 v in meshIn.getVertexList()) foreach (Vector3 v in meshIn.getVertexList())
{ {
if (v != null) if (v.X < minX) minX = v.X;
{ if (v.Y < minY) minY = v.Y;
if (v.X < minX) minX = v.X; if (v.Z < minZ) minZ = v.Z;
if (v.Y < minY) minY = v.Y;
if (v.Z < minZ) minZ = v.Z;
if (v.X > maxX) maxX = v.X; if (v.X > maxX) maxX = v.X;
if (v.Y > maxY) maxY = v.Y; if (v.Y > maxY) maxY = v.Y;
if (v.Z > maxZ) maxZ = v.Z; if (v.Z > maxZ) maxZ = v.Z;
}
} }
return CreateSimpleBoxMesh(minX, maxX, minY, maxY, minZ, maxZ); return CreateSimpleBoxMesh(minX, maxX, minY, maxY, minZ, maxZ);