diff options
author | Diva Canto | 2011-05-04 20:30:33 -0700 |
---|---|---|
committer | Diva Canto | 2011-05-04 20:30:33 -0700 |
commit | 6d3493277584e129ec72e7ff83669ce399fb751f (patch) | |
tree | b926d9511b4870d708f3cd53dab25f437ccaeb60 /OpenSim/Region/CoreModules/Framework | |
parent | Merge branch 'master' into caps (diff) | |
parent | Put the previous state back in the attachments in case the agent transfer fails. (diff) | |
download | opensim-SC-6d3493277584e129ec72e7ff83669ce399fb751f.zip opensim-SC-6d3493277584e129ec72e7ff83669ce399fb751f.tar.gz opensim-SC-6d3493277584e129ec72e7ff83669ce399fb751f.tar.bz2 opensim-SC-6d3493277584e129ec72e7ff83669ce399fb751f.tar.xz |
Merge branch 'master' into caps
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index b985fbb..e380067 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -1759,11 +1759,15 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
1759 | 1759 | ||
1760 | protected void ReInstantiateScripts(ScenePresence sp) | 1760 | protected void ReInstantiateScripts(ScenePresence sp) |
1761 | { | 1761 | { |
1762 | int i = 0; | ||
1762 | sp.Attachments.ForEach(delegate(SceneObjectGroup sog) | 1763 | sp.Attachments.ForEach(delegate(SceneObjectGroup sog) |
1763 | { | 1764 | { |
1765 | sog.SetState(sp.InTransitScriptStates[i++], sp.Scene); | ||
1764 | sog.CreateScriptInstances(0, false, sp.Scene.DefaultScriptEngine, 0); | 1766 | sog.CreateScriptInstances(0, false, sp.Scene.DefaultScriptEngine, 0); |
1765 | sog.ResumeScripts(); | 1767 | sog.ResumeScripts(); |
1766 | }); | 1768 | }); |
1769 | |||
1770 | sp.InTransitScriptStates.Clear(); | ||
1767 | } | 1771 | } |
1768 | #endregion | 1772 | #endregion |
1769 | 1773 | ||
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs index 6b3df9d..1370b1f 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | |||
@@ -371,7 +371,8 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
371 | } | 371 | } |
372 | 372 | ||
373 | // This is a hook to do some per-asset post-processing for subclasses that need that | 373 | // This is a hook to do some per-asset post-processing for subclasses that need that |
374 | ExportAsset(remoteClient.AgentId, assetID); | 374 | if (remoteClient != null) |
375 | ExportAsset(remoteClient.AgentId, assetID); | ||
375 | 376 | ||
376 | return assetID; | 377 | return assetID; |
377 | } | 378 | } |