diff options
author | Melanie Thielker | 2010-04-23 20:18:34 +0200 |
---|---|---|
committer | Melanie Thielker | 2010-04-23 20:18:34 +0200 |
commit | 56f60a04d943c3270819ac66a3ae80773b6352e1 (patch) | |
tree | e1aa858ceec94068b0ff915a07fc0756f7c66f0c /OpenSim | |
parent | Remove debug output, the culprit has been identified (diff) | |
download | opensim-SC_OLD-56f60a04d943c3270819ac66a3ae80773b6352e1.zip opensim-SC_OLD-56f60a04d943c3270819ac66a3ae80773b6352e1.tar.gz opensim-SC_OLD-56f60a04d943c3270819ac66a3ae80773b6352e1.tar.bz2 opensim-SC_OLD-56f60a04d943c3270819ac66a3ae80773b6352e1.tar.xz |
Add an additional serialization call do the detach procedure. This call is
executed only for it's side effects, which are to block until attach(NULL_KEY)
completes, before commencing detachment.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index a667b80..8307467 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -35,6 +35,7 @@ using OpenSim.Framework; | |||
35 | using OpenSim.Region.Framework; | 35 | using OpenSim.Region.Framework; |
36 | using OpenSim.Region.Framework.Interfaces; | 36 | using OpenSim.Region.Framework.Interfaces; |
37 | using OpenSim.Region.Framework.Scenes; | 37 | using OpenSim.Region.Framework.Scenes; |
38 | using OpenSim.Region.Framework.Scenes.Serialization; | ||
38 | 39 | ||
39 | namespace OpenSim.Region.CoreModules.Avatar.Attachments | 40 | namespace OpenSim.Region.CoreModules.Avatar.Attachments |
40 | { | 41 | { |
@@ -405,6 +406,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
405 | if (group.GetFromItemID() == itemID) | 406 | if (group.GetFromItemID() == itemID) |
406 | { | 407 | { |
407 | m_scene.EventManager.TriggerOnAttach(group.LocalId, itemID, UUID.Zero); | 408 | m_scene.EventManager.TriggerOnAttach(group.LocalId, itemID, UUID.Zero); |
409 | // CM / XMREngine!!!! Needed to conclude attach event | ||
410 | SceneObjectSerializer.ToOriginalXmlFormat(group); | ||
408 | group.DetachToInventoryPrep(); | 411 | group.DetachToInventoryPrep(); |
409 | m_log.Debug("[ATTACHMENTS MODULE]: Saving attachpoint: " + ((uint)group.GetAttachmentPoint()).ToString()); | 412 | m_log.Debug("[ATTACHMENTS MODULE]: Saving attachpoint: " + ((uint)group.GetAttachmentPoint()).ToString()); |
410 | m_scene.UpdateKnownItem(remoteClient, group,group.GetFromItemID(), group.OwnerID); | 413 | m_scene.UpdateKnownItem(remoteClient, group,group.GetFromItemID(), group.OwnerID); |