diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 8b4f0ed..4f80a7e 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | |||
@@ -321,6 +321,22 @@ namespace OpenSim.Region.Framework.Scenes | |||
321 | StoreScriptErrors(item.ItemID, null); | 321 | StoreScriptErrors(item.ItemID, null); |
322 | m_part.ParentGroup.AddActiveScriptCount(1); | 322 | m_part.ParentGroup.AddActiveScriptCount(1); |
323 | m_part.ScheduleFullUpdate(); | 323 | m_part.ScheduleFullUpdate(); |
324 | |||
325 | //This should play nice with XEngine since XEngine loads scripts /after/ the region starts | ||
326 | if (stateSource == 0 && m_part.ParentGroup.Scene.LoginsDisabled == true) | ||
327 | { | ||
328 | IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces<IScriptModule>(); | ||
329 | if (engines != null) | ||
330 | { | ||
331 | foreach (IScriptModule xengine in engines) | ||
332 | { | ||
333 | if (xengine != null) | ||
334 | { | ||
335 | xengine.PostScriptEvent(item.ItemID, "changed", new Object[] { (int)Changed.REGION_RESTART }); | ||
336 | } | ||
337 | } | ||
338 | } | ||
339 | } | ||
324 | } | 340 | } |
325 | } | 341 | } |
326 | } | 342 | } |