diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index 1ebac42..cb39e46 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -567,13 +567,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
567 | so.RootPart.AttachedAvatar = avatar.UUID; | 567 | so.RootPart.AttachedAvatar = avatar.UUID; |
568 | 568 | ||
569 | //Anakin Lohner bug #3839 | 569 | //Anakin Lohner bug #3839 |
570 | lock (so.Children) | 570 | SceneObjectPart[] parts = so.Parts; |
571 | { | 571 | for (int i = 0; i < parts.Length; i++) |
572 | foreach (SceneObjectPart p in so.Children.Values) | 572 | parts[i].AttachedAvatar = avatar.UUID; |
573 | { | ||
574 | p.AttachedAvatar = avatar.UUID; | ||
575 | } | ||
576 | } | ||
577 | 573 | ||
578 | if (so.RootPart.PhysActor != null) | 574 | if (so.RootPart.PhysActor != null) |
579 | { | 575 | { |