aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs22
1 files changed, 11 insertions, 11 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index 39443c3..e175db4 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -493,17 +493,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
493 return false; 493 return false;
494 } 494 }
495 495
496 List<SceneObjectGroup> attachments = sp.GetAttachments(attachmentPt);
497 if (attachments.Contains(group))
498 {
499// if (DebugLevel > 0)
500// m_log.WarnFormat(
501// "[ATTACHMENTS MODULE]: Ignoring request to attach {0} {1} to {2} on {3} since it's already attached",
502// group.Name, group.LocalId, sp.Name, attachmentPt);
503
504 return false;
505 }
506
507 Vector3 attachPos = group.AbsolutePosition; 496 Vector3 attachPos = group.AbsolutePosition;
508 497
509 // TODO: this short circuits multiple attachments functionality in LL viewer 2.1+ and should 498 // TODO: this short circuits multiple attachments functionality in LL viewer 2.1+ and should
@@ -547,6 +536,17 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
547 attachPos = Vector3.Zero; 536 attachPos = Vector3.Zero;
548 } 537 }
549 538
539 List<SceneObjectGroup> attachments = sp.GetAttachments(attachmentPt);
540 if (attachments.Contains(group))
541 {
542// if (DebugLevel > 0)
543// m_log.WarnFormat(
544// "[ATTACHMENTS MODULE]: Ignoring request to attach {0} {1} to {2} on {3} since it's already attached",
545// group.Name, group.LocalId, sp.Name, attachmentPt);
546
547 return false;
548 }
549
550 // If we already have 5, remove the oldest until only 4 are left. Skip over temp ones 550 // If we already have 5, remove the oldest until only 4 are left. Skip over temp ones
551 while (attachments.Count >= 5) 551 while (attachments.Count >= 5)
552 { 552 {