aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Framework
diff options
context:
space:
mode:
authorMelanie2011-05-08 20:23:06 +0100
committerMelanie2011-05-08 20:23:06 +0100
commitb451cc1ebb9e950bb93e790ab9e83aff30a47c61 (patch)
treec9fbe41be36cf791976f9e5afabd44f69b64e747 /OpenSim/Region/CoreModules/Framework
parentEnable compressed (gzip) fatpack transfers. (diff)
parentMerge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff)
downloadopensim-SC-b451cc1ebb9e950bb93e790ab9e83aff30a47c61.zip
opensim-SC-b451cc1ebb9e950bb93e790ab9e83aff30a47c61.tar.gz
opensim-SC-b451cc1ebb9e950bb93e790ab9e83aff30a47c61.tar.bz2
opensim-SC-b451cc1ebb9e950bb93e790ab9e83aff30a47c61.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework')
-rw-r--r--OpenSim/Region/CoreModules/Framework/Caps/CapabilitiesModule.cs4
-rw-r--r--OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs21
2 files changed, 17 insertions, 8 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/Caps/CapabilitiesModule.cs b/OpenSim/Region/CoreModules/Framework/Caps/CapabilitiesModule.cs
index b823fec..7ae304c 100644
--- a/OpenSim/Region/CoreModules/Framework/Caps/CapabilitiesModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/Caps/CapabilitiesModule.cs
@@ -66,8 +66,8 @@ namespace OpenSim.Region.CoreModules.Framework
66 m_scene = scene; 66 m_scene = scene;
67 m_scene.RegisterModuleInterface<ICapabilitiesModule>(this); 67 m_scene.RegisterModuleInterface<ICapabilitiesModule>(this);
68 MainConsole.Instance.Commands.AddCommand("Capabilities", false, "show caps", 68 MainConsole.Instance.Commands.AddCommand("Capabilities", false, "show caps",
69 "show capabilities", 69 "show caps",
70 "Shows all registered capabilities", CapabilitiesCommand); 70 "Shows all registered capabilities", CapabilitiesCommand);
71 } 71 }
72 72
73 public void RegionLoaded(Scene scene) 73 public void RegionLoaded(Scene scene)
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
index 8775ea1..0e5953e 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
@@ -911,6 +911,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
911 if (!m_scene.SimulationService.UpdateAgent(neighbourRegion, cAgent)) 911 if (!m_scene.SimulationService.UpdateAgent(neighbourRegion, cAgent))
912 { 912 {
913 // region doesn't take it 913 // region doesn't take it
914 ReInstantiateScripts(agent);
914 ResetFromTransit(agent.UUID); 915 ResetFromTransit(agent.UUID);
915 return agent; 916 return agent;
916 } 917 }
@@ -1787,14 +1788,22 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
1787 protected void ReInstantiateScripts(ScenePresence sp) 1788 protected void ReInstantiateScripts(ScenePresence sp)
1788 { 1789 {
1789 int i = 0; 1790 int i = 0;
1790 sp.Attachments.ForEach(delegate(SceneObjectGroup sog) 1791 if (sp.InTransitScriptStates.Count > 0)
1791 { 1792 {
1792 sog.SetState(sp.InTransitScriptStates[i++], sp.Scene); 1793 sp.Attachments.ForEach(delegate(SceneObjectGroup sog)
1793 sog.CreateScriptInstances(0, false, sp.Scene.DefaultScriptEngine, 0); 1794 {
1794 sog.ResumeScripts(); 1795 if (i < sp.InTransitScriptStates.Count)
1795 }); 1796 {
1797 sog.SetState(sp.InTransitScriptStates[i++], sp.Scene);
1798 sog.CreateScriptInstances(0, false, sp.Scene.DefaultScriptEngine, 0);
1799 sog.ResumeScripts();
1800 }
1801 else
1802 m_log.ErrorFormat("[ENTITY TRANSFER MODULE]: InTransitScriptStates.Count={0} smaller than Attachments.Count={1}", sp.InTransitScriptStates.Count, sp.Attachments.Count);
1803 });
1796 1804
1797 sp.InTransitScriptStates.Clear(); 1805 sp.InTransitScriptStates.Clear();
1806 }
1798 } 1807 }
1799 #endregion 1808 #endregion
1800 1809