aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorOren Hurvitz2014-07-18 17:39:20 +0300
committerJustin Clark-Casey2014-08-02 00:57:20 +0100
commite7bd4a11aa077a566ed206bb285c78cc947eecac (patch)
treef7f633d44d1ef9726a691f7babef7dc77b103cbf
parentAllow reading the BulletSim detail log while the sim is running (diff)
downloadopensim-SC-e7bd4a11aa077a566ed206bb285c78cc947eecac.zip
opensim-SC-e7bd4a11aa077a566ed206bb285c78cc947eecac.tar.gz
opensim-SC-e7bd4a11aa077a566ed206bb285c78cc947eecac.tar.bz2
opensim-SC-e7bd4a11aa077a566ed206bb285c78cc947eecac.tar.xz
Don't append attachments multiple times
-rw-r--r--OpenSim/Framework/AvatarAppearance.cs6
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 }