From 0247d738e2cc4ad9ca6a8631c49cdd700f567190 Mon Sep 17 00:00:00 2001 From: Dan Lake Date: Tue, 27 Mar 2012 12:50:58 -0700 Subject: When loading objects from DB, first add to scene, then call TriggerOnSceneObjectLoaded. --- OpenSim/Region/Framework/Scenes/Scene.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 9bca654..292c81f 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -1685,8 +1685,8 @@ namespace OpenSim.Region.Framework.Scenes foreach (SceneObjectGroup group in PrimsFromDB) { - EventManager.TriggerOnSceneObjectLoaded(group); AddRestoredSceneObject(group, true, true); + EventManager.TriggerOnSceneObjectLoaded(group); SceneObjectPart rootPart = group.GetChildPart(group.UUID); rootPart.Flags &= ~PrimFlags.Scripted; rootPart.TrimPermissions(); -- cgit v1.1