minor: remove mono compile warning, a Vector3 can never be null since it's a struct
parent
7987a6da95
commit
7562e63ae6
|
@ -170,8 +170,6 @@ namespace OpenSim.Region.Physics.Meshing
|
||||||
float maxZ = float.MinValue;
|
float maxZ = float.MinValue;
|
||||||
|
|
||||||
foreach (Vector3 v in meshIn.getVertexList())
|
foreach (Vector3 v in meshIn.getVertexList())
|
||||||
{
|
|
||||||
if (v != null)
|
|
||||||
{
|
{
|
||||||
if (v.X < minX) minX = v.X;
|
if (v.X < minX) minX = v.X;
|
||||||
if (v.Y < minY) minY = v.Y;
|
if (v.Y < minY) minY = v.Y;
|
||||||
|
@ -181,7 +179,6 @@ namespace OpenSim.Region.Physics.Meshing
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue