aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-11-29 16:31:10 +0000
committerJustin Clark-Casey (justincc)2011-11-29 16:31:10 +0000
commita17f93ff44baf41d7ceb3a11a61997fef2c5768b (patch)
tree70c2893f169ebfd56d1d11109bb0b1f486ef3b94 /OpenSim/Region
parenttabulate "show caps" output for easier readability (diff)
downloadopensim-SC_OLD-a17f93ff44baf41d7ceb3a11a61997fef2c5768b.zip
opensim-SC_OLD-a17f93ff44baf41d7ceb3a11a61997fef2c5768b.tar.gz
opensim-SC_OLD-a17f93ff44baf41d7ceb3a11a61997fef2c5768b.tar.bz2
opensim-SC_OLD-a17f93ff44baf41d7ceb3a11a61997fef2c5768b.tar.xz
minor: remove mono compile warning, a Vector3 can never be null since it's a struct
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Physics/Meshing/Meshmerizer.cs15
1 files changed, 6 insertions, 9 deletions
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
index 53d5e4c..f15e81b 100644
--- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
+++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
@@ -171,16 +171,13 @@ namespace OpenSim.Region.Physics.Meshing
171 171
172 foreach (Vector3 v in meshIn.getVertexList()) 172 foreach (Vector3 v in meshIn.getVertexList())
173 { 173 {
174 if (v != null) 174 if (v.X < minX) minX = v.X;
175 { 175 if (v.Y < minY) minY = v.Y;
176 if (v.X < minX) minX = v.X; 176 if (v.Z < minZ) minZ = v.Z;
177 if (v.Y < minY) minY = v.Y;
178 if (v.Z < minZ) minZ = v.Z;
179 177
180 if (v.X > maxX) maxX = v.X; 178 if (v.X > maxX) maxX = v.X;
181 if (v.Y > maxY) maxY = v.Y; 179 if (v.Y > maxY) maxY = v.Y;
182 if (v.Z > maxZ) maxZ = v.Z; 180 if (v.Z > maxZ) maxZ = v.Z;
183 }
184 } 181 }
185 182
186 return CreateSimpleBoxMesh(minX, maxX, minY, maxY, minZ, maxZ); 183 return CreateSimpleBoxMesh(minX, maxX, minY, maxY, minZ, maxZ);