diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/AvatarAppearance.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Framework/AvatarAppearance.cs b/OpenSim/Framework/AvatarAppearance.cs index b7a0adf..69113b1 100644 --- a/OpenSim/Framework/AvatarAppearance.cs +++ b/OpenSim/Framework/AvatarAppearance.cs | |||
@@ -520,6 +520,12 @@ namespace OpenSim.Framework | |||
520 | if (!m_attachments.ContainsKey(attach.AttachPoint)) | 520 | if (!m_attachments.ContainsKey(attach.AttachPoint)) |
521 | m_attachments[attach.AttachPoint] = new List<AvatarAttachment>(); | 521 | m_attachments[attach.AttachPoint] = new List<AvatarAttachment>(); |
522 | 522 | ||
523 | foreach (AvatarAttachment prev in m_attachments[attach.AttachPoint]) | ||
524 | { | ||
525 | if (prev.ItemID == attach.ItemID) | ||
526 | return; | ||
527 | } | ||
528 | |||
523 | m_attachments[attach.AttachPoint].Add(attach); | 529 | m_attachments[attach.AttachPoint].Add(attach); |
524 | } | 530 | } |
525 | } | 531 | } |