diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 671f8fc..58f890f 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1159,7 +1159,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
1159 | { | 1159 | { |
1160 | if (m_scripts_enabled != !ScriptEngine) | 1160 | if (m_scripts_enabled != !ScriptEngine) |
1161 | { | 1161 | { |
1162 | // Tedd! Here's the method to disable the scripting engine! | ||
1163 | if (ScriptEngine) | 1162 | if (ScriptEngine) |
1164 | { | 1163 | { |
1165 | m_log.Info("Stopping all Scripts in Scene"); | 1164 | m_log.Info("Stopping all Scripts in Scene"); |
@@ -1181,6 +1180,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1181 | if (ent is SceneObjectGroup) | 1180 | if (ent is SceneObjectGroup) |
1182 | { | 1181 | { |
1183 | ((SceneObjectGroup)ent).CreateScriptInstances(0, false, DefaultScriptEngine, 0); | 1182 | ((SceneObjectGroup)ent).CreateScriptInstances(0, false, DefaultScriptEngine, 0); |
1183 | ((SceneObjectGroup)ent).ResumeScripts(); | ||
1184 | } | 1184 | } |
1185 | } | 1185 | } |
1186 | } | 1186 | } |
@@ -2777,6 +2777,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2777 | public virtual void SubscribeToClientInventoryEvents(IClientAPI client) | 2777 | public virtual void SubscribeToClientInventoryEvents(IClientAPI client) |
2778 | { | 2778 | { |
2779 | client.OnCreateNewInventoryItem += CreateNewInventoryItem; | 2779 | client.OnCreateNewInventoryItem += CreateNewInventoryItem; |
2780 | client.OnLinkInventoryItem += HandleLinkInventoryItem; | ||
2780 | client.OnCreateNewInventoryFolder += HandleCreateInventoryFolder; | 2781 | client.OnCreateNewInventoryFolder += HandleCreateInventoryFolder; |
2781 | client.OnUpdateInventoryFolder += HandleUpdateInventoryFolder; | 2782 | client.OnUpdateInventoryFolder += HandleUpdateInventoryFolder; |
2782 | client.OnMoveInventoryFolder += HandleMoveInventoryFolder; // 2; //!! | 2783 | client.OnMoveInventoryFolder += HandleMoveInventoryFolder; // 2; //!! |
@@ -2796,14 +2797,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
2796 | } | 2797 | } |
2797 | 2798 | ||
2798 | public virtual void SubscribeToClientAttachmentEvents(IClientAPI client) | 2799 | public virtual void SubscribeToClientAttachmentEvents(IClientAPI client) |
2799 | { | 2800 | { |
2800 | client.OnRezMultipleAttachmentsFromInv += RezMultipleAttachments; | ||
2801 | client.OnObjectDetach += m_sceneGraph.DetachObject; | ||
2802 | |||
2803 | if (AttachmentsModule != null) | 2801 | if (AttachmentsModule != null) |
2804 | { | 2802 | { |
2805 | client.OnRezSingleAttachmentFromInv += AttachmentsModule.RezSingleAttachmentFromInventory; | 2803 | client.OnRezSingleAttachmentFromInv += AttachmentsModule.RezSingleAttachmentFromInventory; |
2804 | client.OnRezMultipleAttachmentsFromInv += AttachmentsModule.RezMultipleAttachmentsFromInventory; | ||
2806 | client.OnObjectAttach += AttachmentsModule.AttachObject; | 2805 | client.OnObjectAttach += AttachmentsModule.AttachObject; |
2806 | client.OnObjectDetach += AttachmentsModule.DetachObject; | ||
2807 | client.OnDetachAttachmentIntoInv += AttachmentsModule.ShowDetachInUserInventory; | 2807 | client.OnDetachAttachmentIntoInv += AttachmentsModule.ShowDetachInUserInventory; |
2808 | } | 2808 | } |
2809 | } | 2809 | } |
@@ -2952,14 +2952,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
2952 | } | 2952 | } |
2953 | 2953 | ||
2954 | public virtual void UnSubscribeToClientAttachmentEvents(IClientAPI client) | 2954 | public virtual void UnSubscribeToClientAttachmentEvents(IClientAPI client) |
2955 | { | 2955 | { |
2956 | client.OnRezMultipleAttachmentsFromInv -= RezMultipleAttachments; | ||
2957 | client.OnObjectDetach -= m_sceneGraph.DetachObject; | ||
2958 | |||
2959 | if (AttachmentsModule != null) | 2956 | if (AttachmentsModule != null) |
2960 | { | 2957 | { |
2961 | client.OnRezSingleAttachmentFromInv -= AttachmentsModule.RezSingleAttachmentFromInventory; | 2958 | client.OnRezSingleAttachmentFromInv -= AttachmentsModule.RezSingleAttachmentFromInventory; |
2959 | client.OnRezMultipleAttachmentsFromInv -= AttachmentsModule.RezMultipleAttachmentsFromInventory; | ||
2962 | client.OnObjectAttach -= AttachmentsModule.AttachObject; | 2960 | client.OnObjectAttach -= AttachmentsModule.AttachObject; |
2961 | client.OnObjectDetach -= AttachmentsModule.DetachObject; | ||
2963 | client.OnDetachAttachmentIntoInv -= AttachmentsModule.ShowDetachInUserInventory; | 2962 | client.OnDetachAttachmentIntoInv -= AttachmentsModule.ShowDetachInUserInventory; |
2964 | } | 2963 | } |
2965 | } | 2964 | } |