Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Dan Lake authored October 05, 2012
9  OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2139,7 +2139,14 @@ public Vector3 GetNewRezLocation(Vector3 RayStart, Vector3 RayEnd, UUID RayTarge
2139 2139
         public bool AddRestoredSceneObject(
2140 2140
             SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted, bool sendClientUpdates)
2141 2141
         {
2142  
-            return m_sceneGraph.AddRestoredSceneObject(sceneObject, attachToBackup, alreadyPersisted, sendClientUpdates);
  2142
+            if (m_sceneGraph.AddRestoredSceneObject(sceneObject, attachToBackup, alreadyPersisted, sendClientUpdates))
  2143
+            {
  2144
+                EventManager.TriggerObjectAddedToScene(sceneObject);
  2145
+                return true;
  2146
+            }
  2147
+
  2148
+            return false;
  2149
+
2143 2150
         }
2144 2151
         
2145 2152
         /// <summary>

0 notes on commit 6f220a8

Please sign in to comment.
Something went wrong with that request. Please try again.