diff options
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | 13 |
2 files changed, 13 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index e2bdee0..edfc94f 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -1785,11 +1785,15 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
1785 | 1785 | ||
1786 | protected void ReInstantiateScripts(ScenePresence sp) | 1786 | protected void ReInstantiateScripts(ScenePresence sp) |
1787 | { | 1787 | { |
1788 | int i = 0; | ||
1788 | sp.Attachments.ForEach(delegate(SceneObjectGroup sog) | 1789 | sp.Attachments.ForEach(delegate(SceneObjectGroup sog) |
1789 | { | 1790 | { |
1791 | sog.SetState(sp.InTransitScriptStates[i++], sp.Scene); | ||
1790 | sog.CreateScriptInstances(0, false, sp.Scene.DefaultScriptEngine, 0); | 1792 | sog.CreateScriptInstances(0, false, sp.Scene.DefaultScriptEngine, 0); |
1791 | sog.ResumeScripts(); | 1793 | sog.ResumeScripts(); |
1792 | }); | 1794 | }); |
1795 | |||
1796 | sp.InTransitScriptStates.Clear(); | ||
1793 | } | 1797 | } |
1794 | #endregion | 1798 | #endregion |
1795 | 1799 | ||
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs index a165bbd..184b223 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | |||
@@ -594,9 +594,18 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
594 | } | 594 | } |
595 | } | 595 | } |
596 | } | 596 | } |
597 | |||
598 | // This is a hook to do some per-asset post-processing for subclasses that need that | ||
599 | if (remoteClient != null) | ||
600 | ExportAsset(remoteClient.AgentId, assetID); | ||
601 | |||
597 | return assetID; | 602 | return assetID; |
598 | } | 603 | } |
599 | 604 | ||
605 | protected virtual void ExportAsset(UUID agentID, UUID assetID) | ||
606 | { | ||
607 | // nothing to do here | ||
608 | } | ||
600 | 609 | ||
601 | /// <summary> | 610 | /// <summary> |
602 | /// Rez an object into the scene from the user's inventory | 611 | /// Rez an object into the scene from the user's inventory |
@@ -1025,9 +1034,5 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
1025 | } | 1034 | } |
1026 | 1035 | ||
1027 | #endregion | 1036 | #endregion |
1028 | |||
1029 | protected virtual void ExportAsset(UUID agentID, UUID assetID) | ||
1030 | { | ||
1031 | } | ||
1032 | } | 1037 | } |
1033 | } | 1038 | } |