Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Trigger ObjectAddedToScene when loading objects from oarfile. Already…

… triggers when creating, duplicating or loading from database, incoming attachments, etc
  • Loading branch information...
commit 6f220a867981db8e3357484feff1fe1977170561 1 parent 1fb53e7
@dslake dslake authored
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>
Please sign in to comment.
Something went wrong with that request. Please try again.