aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMelanie Thielker2010-04-23 20:18:34 +0200
committerMelanie Thielker2010-04-23 20:18:34 +0200
commit56f60a04d943c3270819ac66a3ae80773b6352e1 (patch)
treee1aa858ceec94068b0ff915a07fc0756f7c66f0c /OpenSim/Region
parentRemove debug output, the culprit has been identified (diff)
downloadopensim-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/Region')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs3
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;
35using OpenSim.Region.Framework; 35using OpenSim.Region.Framework;
36using OpenSim.Region.Framework.Interfaces; 36using OpenSim.Region.Framework.Interfaces;
37using OpenSim.Region.Framework.Scenes; 37using OpenSim.Region.Framework.Scenes;
38using OpenSim.Region.Framework.Scenes.Serialization;
38 39
39namespace OpenSim.Region.CoreModules.Avatar.Attachments 40namespace 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);