aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index bc91961..fe785dd 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -432,13 +432,9 @@ namespace OpenSim.Region.Framework.Scenes
432 432
433 sceneObject.AttachToScene(m_parentScene); 433 sceneObject.AttachToScene(m_parentScene);
434 434
435 if (sendClientUpdates)
436 sceneObject.ScheduleGroupForFullUpdate();
437 435
438 Entities.Add(sceneObject); 436 Entities.Add(sceneObject);
439 437
440 if (attachToBackup)
441 sceneObject.AttachToBackup();
442 438
443 lock (SceneObjectGroupsByFullID) 439 lock (SceneObjectGroupsByFullID)
444 SceneObjectGroupsByFullID[sceneObject.UUID] = sceneObject; 440 SceneObjectGroupsByFullID[sceneObject.UUID] = sceneObject;
@@ -459,6 +455,12 @@ namespace OpenSim.Region.Framework.Scenes
459 SceneObjectGroupsByLocalPartID[part.LocalId] = sceneObject; 455 SceneObjectGroupsByLocalPartID[part.LocalId] = sceneObject;
460 } 456 }
461 457
458 if (sendClientUpdates)
459 sceneObject.ScheduleGroupForFullUpdate();
460
461 if (attachToBackup)
462 sceneObject.AttachToBackup();
463
462 return true; 464 return true;
463 } 465 }
464 466