diff options
author | Oren Hurvitz | 2014-07-18 17:39:20 +0300 |
---|---|---|
committer | Justin Clark-Casey | 2014-08-02 00:57:20 +0100 |
commit | e7bd4a11aa077a566ed206bb285c78cc947eecac (patch) | |
tree | f7f633d44d1ef9726a691f7babef7dc77b103cbf /OpenSim/Framework | |
parent | Allow reading the BulletSim detail log while the sim is running (diff) | |
download | opensim-SC_OLD-e7bd4a11aa077a566ed206bb285c78cc947eecac.zip opensim-SC_OLD-e7bd4a11aa077a566ed206bb285c78cc947eecac.tar.gz opensim-SC_OLD-e7bd4a11aa077a566ed206bb285c78cc947eecac.tar.bz2 opensim-SC_OLD-e7bd4a11aa077a566ed206bb285c78cc947eecac.tar.xz |
Don't append attachments multiple times
Diffstat (limited to 'OpenSim/Framework')
-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 | } |