aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorOren Hurvitz2014-07-18 17:39:20 +0300
committerOren Hurvitz2014-07-21 09:29:50 +0100
commit712c50e0bf2a70e5b7d950113191b20af4fec429 (patch)
tree6ebbe5be59207f9301c4439bb7e0a050a0a0d436 /OpenSim/Framework
parentFixed avatar hovering above the ground. The avatar physics capsule was too tall. (diff)
downloadopensim-SC-712c50e0bf2a70e5b7d950113191b20af4fec429.zip
opensim-SC-712c50e0bf2a70e5b7d950113191b20af4fec429.tar.gz
opensim-SC-712c50e0bf2a70e5b7d950113191b20af4fec429.tar.bz2
opensim-SC-712c50e0bf2a70e5b7d950113191b20af4fec429.tar.xz
Don't append attachments multiple times
Diffstat (limited to 'OpenSim/Framework')
-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 }