Permalink
Browse files

Trigger ObjectAddedToScene when loading objects from oarfile. Already…

… triggers when creating, duplicating or loading from database, incoming attachments, etc
  • Loading branch information...
1 parent 1fb53e7 commit 6f220a867981db8e3357484feff1fe1977170561 @dslake dslake committed Oct 6, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 OpenSim/Region/Framework/Scenes/Scene.cs
View
9 OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2139,7 +2139,14 @@ public Vector3 GetNewRezLocation(Vector3 RayStart, Vector3 RayEnd, UUID RayTarge
public bool AddRestoredSceneObject(
SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted, bool sendClientUpdates)
{
- return m_sceneGraph.AddRestoredSceneObject(sceneObject, attachToBackup, alreadyPersisted, sendClientUpdates);
+ if (m_sceneGraph.AddRestoredSceneObject(sceneObject, attachToBackup, alreadyPersisted, sendClientUpdates))
+ {
+ EventManager.TriggerObjectAddedToScene(sceneObject);
+ return true;
+ }
+
+ return false;
+
}
/// <summary>

0 comments on commit 6f220a8

Please sign in to comment.