diff options
-rw-r--r-- | OpenSim/Region/CoreModules/World/Warp3DMap/MapImageModule.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Warp3DMap/MapImageModule.cs b/OpenSim/Region/CoreModules/World/Warp3DMap/MapImageModule.cs index a99b20c..49b4364 100644 --- a/OpenSim/Region/CoreModules/World/Warp3DMap/MapImageModule.cs +++ b/OpenSim/Region/CoreModules/World/Warp3DMap/MapImageModule.cs | |||
@@ -352,6 +352,12 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap | |||
352 | Face face = renderMesh.Faces[i]; | 352 | Face face = renderMesh.Faces[i]; |
353 | string meshName = primID + "-Face-" + i.ToString(); | 353 | string meshName = primID + "-Face-" + i.ToString(); |
354 | 354 | ||
355 | // Avoid adding duplicate meshes to the scene | ||
356 | if (renderer.Scene.objectData.ContainsKey(meshName)) | ||
357 | { | ||
358 | continue; | ||
359 | } | ||
360 | |||
355 | warp_Object faceObj = new warp_Object(face.Vertices.Count, face.Indices.Count / 3); | 361 | warp_Object faceObj = new warp_Object(face.Vertices.Count, face.Indices.Count / 3); |
356 | 362 | ||
357 | for (int j = 0; j < face.Vertices.Count; j++) | 363 | for (int j = 0; j < face.Vertices.Count; j++) |