diff options
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index dc33dbb..47476a9 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -571,14 +571,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
571 | /// <param name="sp"></param> | 571 | /// <param name="sp"></param> |
572 | /// <param name="so"></param> | 572 | /// <param name="so"></param> |
573 | /// <param name="attachmentpoint"></param> | 573 | /// <param name="attachmentpoint"></param> |
574 | /// <param name="AttachOffset"></param> | 574 | /// <param name="attachOffset"></param> |
575 | /// <param name="silent"></param> | 575 | /// <param name="silent"></param> |
576 | protected void AttachToAgent(ScenePresence avatar, SceneObjectGroup so, uint attachmentpoint, Vector3 AttachOffset, bool silent) | 576 | protected void AttachToAgent(ScenePresence avatar, SceneObjectGroup so, uint attachmentpoint, Vector3 attachOffset, bool silent) |
577 | { | 577 | { |
578 | // don't attach attachments to child agents | ||
579 | if (avatar.IsChildAgent) return; | ||
580 | 578 | ||
581 | // m_log.DebugFormat("[ATTACHMENTS MODULE]: Adding attachment {0} to avatar {1}", Name, avatar.Name); | 579 | m_log.DebugFormat("[ATTACHMENTS MODULE]: Adding attachment {0} to avatar {1} in pt {2} pos {3} {4}", Name, avatar.Name, |
580 | attachmentpoint, attachOffset, so.RootPart.AttachedPos); | ||
582 | 581 | ||
583 | so.DetachFromBackup(); | 582 | so.DetachFromBackup(); |
584 | 583 | ||
@@ -599,8 +598,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
599 | so.RootPart.PhysActor = null; | 598 | so.RootPart.PhysActor = null; |
600 | } | 599 | } |
601 | 600 | ||
602 | so.AbsolutePosition = AttachOffset; | 601 | so.AbsolutePosition = attachOffset; |
603 | so.RootPart.AttachedPos = AttachOffset; | 602 | so.RootPart.AttachedPos = attachOffset; |
604 | so.RootPart.IsAttachment = true; | 603 | so.RootPart.IsAttachment = true; |
605 | 604 | ||
606 | so.RootPart.SetParentLocalId(avatar.LocalId); | 605 | so.RootPart.SetParentLocalId(avatar.LocalId); |