diff options
author | Latif Khalifa | 2010-10-04 07:37:22 +0200 |
---|---|---|
committer | Melanie | 2010-10-04 06:02:28 +0100 |
commit | e55e93c994befde561c467b40768a21dcf72892e (patch) | |
tree | eec2771b9858aaa193d3504e88a2a4ca51aaf5f2 /OpenSim/Region/CoreModules | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
download | opensim-SC-e55e93c994befde561c467b40768a21dcf72892e.zip opensim-SC-e55e93c994befde561c467b40768a21dcf72892e.tar.gz opensim-SC-e55e93c994befde561c467b40768a21dcf72892e.tar.bz2 opensim-SC-e55e93c994befde561c467b40768a21dcf72892e.tar.xz |
Avoid throwing errors when adding existing meshes to the render scene
Diffstat (limited to '')
-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++) |