diff options
author | UbitUmarov | 2018-07-11 03:08:57 +0100 |
---|---|---|
committer | UbitUmarov | 2018-07-11 03:08:57 +0100 |
commit | ee115a83dfea5fd75d5c92b82de2aefa8d319e7f (patch) | |
tree | df3e6118306f06b6671a78600127a385331cae56 /OpenSim | |
parent | replace some string tests (diff) | |
download | opensim-SC-ee115a83dfea5fd75d5c92b82de2aefa8d319e7f.zip opensim-SC-ee115a83dfea5fd75d5c92b82de2aefa8d319e7f.tar.gz opensim-SC-ee115a83dfea5fd75d5c92b82de2aefa8d319e7f.tar.bz2 opensim-SC-ee115a83dfea5fd75d5c92b82de2aefa8d319e7f.tar.xz |
Bug fix: Object Wear was doing Add not replace
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 22 |
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 | { |