diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/AvatarAppearance.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Framework/AvatarAppearance.cs b/OpenSim/Framework/AvatarAppearance.cs index a2a5c84..5da8ba1 100644 --- a/OpenSim/Framework/AvatarAppearance.cs +++ b/OpenSim/Framework/AvatarAppearance.cs | |||
@@ -559,6 +559,16 @@ namespace OpenSim.Framework | |||
559 | 559 | ||
560 | private Dictionary<int, UUID[]> m_attachments = new Dictionary<int, UUID[]>(); | 560 | private Dictionary<int, UUID[]> m_attachments = new Dictionary<int, UUID[]>(); |
561 | 561 | ||
562 | public void SetAttachments(AttachmentData[] data) | ||
563 | { | ||
564 | foreach (AttachmentData a in data) | ||
565 | { | ||
566 | m_attachments[a.AttachPoint] = new UUID[2]; | ||
567 | m_attachments[a.AttachPoint][0] = a.ItemID; | ||
568 | m_attachments[a.AttachPoint][1] = a.AssetID; | ||
569 | } | ||
570 | } | ||
571 | |||
562 | public void SetAttachments(Hashtable data) | 572 | public void SetAttachments(Hashtable data) |
563 | { | 573 | { |
564 | m_attachments.Clear(); | 574 | m_attachments.Clear(); |
@@ -588,6 +598,11 @@ namespace OpenSim.Framework | |||
588 | } | 598 | } |
589 | } | 599 | } |
590 | 600 | ||
601 | public Dictionary<int, UUID[]> GetAttachmentDictionary() | ||
602 | { | ||
603 | return m_attachments; | ||
604 | } | ||
605 | |||
591 | public Hashtable GetAttachments() | 606 | public Hashtable GetAttachments() |
592 | { | 607 | { |
593 | if (m_attachments.Count == 0) | 608 | if (m_attachments.Count == 0) |