diff options
author | Justin Clark-Casey (justincc) | 2010-03-12 22:39:15 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-03-12 22:39:15 +0000 |
commit | b9f5cd75bc9b46b067d151a1a13d4e95cc98cedb (patch) | |
tree | a9cbf02470f359f998bb76a76b0c37fd9b42d15d /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | start laoding griduser local connector, though it isn't invoked by anything yet (diff) | |
download | opensim-SC_OLD-b9f5cd75bc9b46b067d151a1a13d4e95cc98cedb.zip opensim-SC_OLD-b9f5cd75bc9b46b067d151a1a13d4e95cc98cedb.tar.gz opensim-SC_OLD-b9f5cd75bc9b46b067d151a1a13d4e95cc98cedb.tar.bz2 opensim-SC_OLD-b9f5cd75bc9b46b067d151a1a13d4e95cc98cedb.tar.xz |
refactor: move client invoked AttachObject from SceneGraph to AttachmentsModule
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 87a753e..d4d134f 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -2644,12 +2644,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
2644 | public virtual void SubscribeToClientAttachmentEvents(IClientAPI client) | 2644 | public virtual void SubscribeToClientAttachmentEvents(IClientAPI client) |
2645 | { | 2645 | { |
2646 | client.OnRezSingleAttachmentFromInv += RezSingleAttachment; | 2646 | client.OnRezSingleAttachmentFromInv += RezSingleAttachment; |
2647 | client.OnRezMultipleAttachmentsFromInv += RezMultipleAttachments; | 2647 | client.OnRezMultipleAttachmentsFromInv += RezMultipleAttachments; |
2648 | client.OnObjectAttach += m_sceneGraph.AttachObject; | ||
2649 | client.OnObjectDetach += m_sceneGraph.DetachObject; | 2648 | client.OnObjectDetach += m_sceneGraph.DetachObject; |
2650 | 2649 | ||
2651 | if (AttachmentsModule != null) | 2650 | if (AttachmentsModule != null) |
2651 | { | ||
2652 | client.OnObjectAttach += AttachmentsModule.AttachObject; | ||
2652 | client.OnDetachAttachmentIntoInv += AttachmentsModule.ShowDetachInUserInventory; | 2653 | client.OnDetachAttachmentIntoInv += AttachmentsModule.ShowDetachInUserInventory; |
2654 | } | ||
2653 | } | 2655 | } |
2654 | 2656 | ||
2655 | public virtual void SubscribeToClientTeleportEvents(IClientAPI client) | 2657 | public virtual void SubscribeToClientTeleportEvents(IClientAPI client) |
@@ -2774,7 +2776,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2774 | client.OnRezObject -= RezObject; | 2776 | client.OnRezObject -= RezObject; |
2775 | } | 2777 | } |
2776 | 2778 | ||
2777 | |||
2778 | public virtual void UnSubscribeToClientInventoryEvents(IClientAPI client) | 2779 | public virtual void UnSubscribeToClientInventoryEvents(IClientAPI client) |
2779 | { | 2780 | { |
2780 | client.OnCreateNewInventoryItem -= CreateNewInventoryItem; | 2781 | client.OnCreateNewInventoryItem -= CreateNewInventoryItem; |
@@ -2799,12 +2800,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
2799 | public virtual void UnSubscribeToClientAttachmentEvents(IClientAPI client) | 2800 | public virtual void UnSubscribeToClientAttachmentEvents(IClientAPI client) |
2800 | { | 2801 | { |
2801 | client.OnRezMultipleAttachmentsFromInv -= RezMultipleAttachments; | 2802 | client.OnRezMultipleAttachmentsFromInv -= RezMultipleAttachments; |
2802 | client.OnRezSingleAttachmentFromInv -= RezSingleAttachment; | 2803 | client.OnRezSingleAttachmentFromInv -= RezSingleAttachment; |
2803 | client.OnObjectAttach -= m_sceneGraph.AttachObject; | ||
2804 | client.OnObjectDetach -= m_sceneGraph.DetachObject; | 2804 | client.OnObjectDetach -= m_sceneGraph.DetachObject; |
2805 | 2805 | ||
2806 | if (AttachmentsModule != null) | 2806 | if (AttachmentsModule != null) |
2807 | { | ||
2808 | client.OnObjectAttach -= AttachmentsModule.AttachObject; | ||
2807 | client.OnDetachAttachmentIntoInv -= AttachmentsModule.ShowDetachInUserInventory; | 2809 | client.OnDetachAttachmentIntoInv -= AttachmentsModule.ShowDetachInUserInventory; |
2810 | } | ||
2808 | } | 2811 | } |
2809 | 2812 | ||
2810 | public virtual void UnSubscribeToClientTeleportEvents(IClientAPI client) | 2813 | public virtual void UnSubscribeToClientTeleportEvents(IClientAPI client) |