mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Avoid throwing errors when adding existing meshes to the render scene
This commit is contained in:
@@ -352,6 +352,12 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
|
||||
Face face = renderMesh.Faces[i];
|
||||
string meshName = primID + "-Face-" + i.ToString();
|
||||
|
||||
// Avoid adding duplicate meshes to the scene
|
||||
if (renderer.Scene.objectData.ContainsKey(meshName))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
warp_Object faceObj = new warp_Object(face.Vertices.Count, face.Indices.Count / 3);
|
||||
|
||||
for (int j = 0; j < face.Vertices.Count; j++)
|
||||
|
||||
Reference in New Issue
Block a user