diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index c83132f..7c0375e 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -2646,10 +2646,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
2646 | public virtual void SubscribeToClientAttachmentEvents(IClientAPI client) | 2646 | public virtual void SubscribeToClientAttachmentEvents(IClientAPI client) |
2647 | { | 2647 | { |
2648 | client.OnRezSingleAttachmentFromInv += RezSingleAttachment; | 2648 | client.OnRezSingleAttachmentFromInv += RezSingleAttachment; |
2649 | client.OnRezMultipleAttachmentsFromInv += RezMultipleAttachments; | 2649 | client.OnRezMultipleAttachmentsFromInv += RezMultipleAttachments; |
2650 | client.OnDetachAttachmentIntoInv += DetachSingleAttachmentToInv; | ||
2651 | client.OnObjectAttach += m_sceneGraph.AttachObject; | 2650 | client.OnObjectAttach += m_sceneGraph.AttachObject; |
2652 | client.OnObjectDetach += m_sceneGraph.DetachObject; | 2651 | client.OnObjectDetach += m_sceneGraph.DetachObject; |
2652 | |||
2653 | if (AttachmentsModule != null) | ||
2654 | client.OnDetachAttachmentIntoInv += AttachmentsModule.ShowDetachInUserInventory; | ||
2653 | } | 2655 | } |
2654 | 2656 | ||
2655 | public virtual void SubscribeToClientTeleportEvents(IClientAPI client) | 2657 | public virtual void SubscribeToClientTeleportEvents(IClientAPI client) |
@@ -2696,8 +2698,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2696 | } | 2698 | } |
2697 | 2699 | ||
2698 | protected virtual void UnsubscribeToClientEvents(IClientAPI client) | 2700 | protected virtual void UnsubscribeToClientEvents(IClientAPI client) |
2699 | { | 2701 | { |
2700 | |||
2701 | } | 2702 | } |
2702 | 2703 | ||
2703 | /// <summary> | 2704 | /// <summary> |
@@ -2719,7 +2720,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2719 | 2720 | ||
2720 | UnSubscribeToClientNetworkEvents(client); | 2721 | UnSubscribeToClientNetworkEvents(client); |
2721 | 2722 | ||
2722 | |||
2723 | // EventManager.TriggerOnNewClient(client); | 2723 | // EventManager.TriggerOnNewClient(client); |
2724 | } | 2724 | } |
2725 | 2725 | ||
@@ -2799,12 +2799,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
2799 | } | 2799 | } |
2800 | 2800 | ||
2801 | public virtual void UnSubscribeToClientAttachmentEvents(IClientAPI client) | 2801 | public virtual void UnSubscribeToClientAttachmentEvents(IClientAPI client) |
2802 | { | 2802 | { |
2803 | client.OnRezSingleAttachmentFromInv -= RezSingleAttachment; | ||
2804 | client.OnRezMultipleAttachmentsFromInv -= RezMultipleAttachments; | 2803 | client.OnRezMultipleAttachmentsFromInv -= RezMultipleAttachments; |
2805 | client.OnDetachAttachmentIntoInv -= DetachSingleAttachmentToInv; | 2804 | client.OnRezSingleAttachmentFromInv -= RezSingleAttachment; |
2806 | client.OnObjectAttach -= m_sceneGraph.AttachObject; | 2805 | client.OnObjectAttach -= m_sceneGraph.AttachObject; |
2807 | client.OnObjectDetach -= m_sceneGraph.DetachObject; | 2806 | client.OnObjectDetach -= m_sceneGraph.DetachObject; |
2807 | |||
2808 | if (AttachmentsModule != null) | ||
2809 | client.OnDetachAttachmentIntoInv -= AttachmentsModule.ShowDetachInUserInventory; | ||
2808 | } | 2810 | } |
2809 | 2811 | ||
2810 | public virtual void UnSubscribeToClientTeleportEvents(IClientAPI client) | 2812 | public virtual void UnSubscribeToClientTeleportEvents(IClientAPI client) |