diff options
author | Melanie | 2011-05-08 20:20:40 +0100 |
---|---|---|
committer | Melanie | 2011-05-08 20:20:40 +0100 |
commit | 1be67914fab348115faa1fc9e9ecffbf7c303093 (patch) | |
tree | 7ad4917efae6aebeefa51fe03b1d1aac3e95efcb /OpenSim/Region/CoreModules/Framework | |
parent | Enable compressed (gzip) fatpack transfers. (diff) | |
parent | Mantis #5472 (diff) | |
download | opensim-SC_OLD-1be67914fab348115faa1fc9e9ecffbf7c303093.zip opensim-SC_OLD-1be67914fab348115faa1fc9e9ecffbf7c303093.tar.gz opensim-SC_OLD-1be67914fab348115faa1fc9e9ecffbf7c303093.tar.bz2 opensim-SC_OLD-1be67914fab348115faa1fc9e9ecffbf7c303093.tar.xz |
Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/Caps/CapabilitiesModule.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 21 |
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 111d808..eb776fe 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 73f07ba..da3a541 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -892,6 +892,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
892 | if (!m_scene.SimulationService.UpdateAgent(neighbourRegion, cAgent)) | 892 | if (!m_scene.SimulationService.UpdateAgent(neighbourRegion, cAgent)) |
893 | { | 893 | { |
894 | // region doesn't take it | 894 | // region doesn't take it |
895 | ReInstantiateScripts(agent); | ||
895 | ResetFromTransit(agent.UUID); | 896 | ResetFromTransit(agent.UUID); |
896 | return agent; | 897 | return agent; |
897 | } | 898 | } |
@@ -1761,14 +1762,22 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
1761 | protected void ReInstantiateScripts(ScenePresence sp) | 1762 | protected void ReInstantiateScripts(ScenePresence sp) |
1762 | { | 1763 | { |
1763 | int i = 0; | 1764 | int i = 0; |
1764 | sp.Attachments.ForEach(delegate(SceneObjectGroup sog) | 1765 | if (sp.InTransitScriptStates.Count > 0) |
1765 | { | 1766 | { |
1766 | sog.SetState(sp.InTransitScriptStates[i++], sp.Scene); | 1767 | sp.Attachments.ForEach(delegate(SceneObjectGroup sog) |
1767 | sog.CreateScriptInstances(0, false, sp.Scene.DefaultScriptEngine, 0); | 1768 | { |
1768 | sog.ResumeScripts(); | 1769 | if (i < sp.InTransitScriptStates.Count) |
1769 | }); | 1770 | { |
1771 | sog.SetState(sp.InTransitScriptStates[i++], sp.Scene); | ||
1772 | sog.CreateScriptInstances(0, false, sp.Scene.DefaultScriptEngine, 0); | ||
1773 | sog.ResumeScripts(); | ||
1774 | } | ||
1775 | else | ||
1776 | m_log.ErrorFormat("[ENTITY TRANSFER MODULE]: InTransitScriptStates.Count={0} smaller than Attachments.Count={1}", sp.InTransitScriptStates.Count, sp.Attachments.Count); | ||
1777 | }); | ||
1770 | 1778 | ||
1771 | sp.InTransitScriptStates.Clear(); | 1779 | sp.InTransitScriptStates.Clear(); |
1780 | } | ||
1772 | } | 1781 | } |
1773 | #endregion | 1782 | #endregion |
1774 | 1783 | ||