aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
diff options
context:
space:
mode:
authorTom2010-08-06 02:39:42 -0700
committerTom2010-08-06 02:40:31 -0700
commitc5c6627adb79644b93c5871243a9eeeff553829c (patch)
tree49201fd9052cf40d666a38b0a62779a13540542d /OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
parentllRequestSimulatorData DATA_SIM_POS : Divide by RegionSize, don't multiply. T... (diff)
downloadopensim-SC-c5c6627adb79644b93c5871243a9eeeff553829c.zip
opensim-SC-c5c6627adb79644b93c5871243a9eeeff553829c.tar.gz
opensim-SC-c5c6627adb79644b93c5871243a9eeeff553829c.tar.bz2
opensim-SC-c5c6627adb79644b93c5871243a9eeeff553829c.tar.xz
Implement CHANGED_REGION_(RE)START and also fix various CHANGED_* constants which had the wrong values (checked using LSL in SL). This addresses mantis #217 and mantis #53.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs16
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 }