When loading objects from DB, first add to scene, then call TriggerOnSceneObjectLoaded.
parent
64a036b4cf
commit
0247d738e2
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue