aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/AvatarAppearance.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/AvatarAppearance.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Framework/AvatarAppearance.cs b/OpenSim/Framework/AvatarAppearance.cs
index 56fcc15..5ec9283 100644
--- a/OpenSim/Framework/AvatarAppearance.cs
+++ b/OpenSim/Framework/AvatarAppearance.cs
@@ -566,6 +566,16 @@ namespace OpenSim.Framework
566 566
567 private Dictionary<int, UUID[]> m_attachments = new Dictionary<int, UUID[]>(); 567 private Dictionary<int, UUID[]> m_attachments = new Dictionary<int, UUID[]>();
568 568
569 public void SetAttachments(AttachmentData[] data)
570 {
571 foreach (AttachmentData a in data)
572 {
573 m_attachments[a.AttachPoint] = new UUID[2];
574 m_attachments[a.AttachPoint][0] = a.ItemID;
575 m_attachments[a.AttachPoint][1] = a.AssetID;
576 }
577 }
578
569 public void SetAttachments(Hashtable data) 579 public void SetAttachments(Hashtable data)
570 { 580 {
571 m_attachments.Clear(); 581 m_attachments.Clear();
@@ -595,6 +605,11 @@ namespace OpenSim.Framework
595 } 605 }
596 } 606 }
597 607
608 public Dictionary<int, UUID[]> GetAttachmentDictionary()
609 {
610 return m_attachments;
611 }
612
598 public Hashtable GetAttachments() 613 public Hashtable GetAttachments()
599 { 614 {
600 if (m_attachments.Count == 0) 615 if (m_attachments.Count == 0)