aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index 03837b5..b9cd880 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -151,7 +151,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
151// { 151// {
152 grp.IsAttachment = false; 152 grp.IsAttachment = false;
153 grp.AbsolutePosition = grp.RootPart.AttachedPos; 153 grp.AbsolutePosition = grp.RootPart.AttachedPos;
154 UpdateKnownItem(sp.ControllingClient, grp, grp.GetFromItemID(), grp.OwnerID); 154 UpdateKnownItem(sp.ControllingClient, grp);
155 grp.IsAttachment = true; 155 grp.IsAttachment = true;
156// } 156// }
157 } 157 }
@@ -668,7 +668,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
668 group.IsAttachment = false; 668 group.IsAttachment = false;
669 group.AbsolutePosition = group.RootPart.AttachedPos; 669 group.AbsolutePosition = group.RootPart.AttachedPos;
670 670
671 UpdateKnownItem(sp.ControllingClient, group, group.GetFromItemID(), group.OwnerID); 671 UpdateKnownItem(sp.ControllingClient, group);
672 m_scene.DeleteSceneObject(group, false); 672 m_scene.DeleteSceneObject(group, false);
673 673
674 return; 674 return;
@@ -703,9 +703,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
703 /// </remarks> 703 /// </remarks>
704 /// <param name="remoteClient"></param> 704 /// <param name="remoteClient"></param>
705 /// <param name="grp"></param> 705 /// <param name="grp"></param>
706 /// <param name="itemID"></param> 706 private void UpdateKnownItem(IClientAPI remoteClient, SceneObjectGroup grp)
707 /// <param name="agentID"></param>
708 private void UpdateKnownItem(IClientAPI remoteClient, SceneObjectGroup grp, UUID itemID, UUID agentID)
709 { 707 {
710 if (grp.HasGroupChanged || grp.ContainsScripts()) 708 if (grp.HasGroupChanged || grp.ContainsScripts())
711 { 709 {
@@ -715,7 +713,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
715 713
716 string sceneObjectXml = SceneObjectSerializer.ToOriginalXmlFormat(grp); 714 string sceneObjectXml = SceneObjectSerializer.ToOriginalXmlFormat(grp);
717 715
718 InventoryItemBase item = new InventoryItemBase(itemID, remoteClient.AgentId); 716 InventoryItemBase item = new InventoryItemBase(grp.GetFromItemID(), remoteClient.AgentId);
719 item = m_scene.InventoryService.GetItem(item); 717 item = m_scene.InventoryService.GetItem(item);
720 718
721 if (item != null) 719 if (item != null)