diff options
author | Diva Canto | 2010-01-12 09:22:58 -0800 |
---|---|---|
committer | Diva Canto | 2010-01-12 09:22:58 -0800 |
commit | 66920a9047b54db947d02f252e17409b7fc32ef0 (patch) | |
tree | 8e5b34a510885183e400796616f224faceb4a142 /OpenSim/Framework/AvatarAppearance.cs | |
parent | Fixed a couple of bugs with Appearance. Appearance is all good now. (diff) | |
download | opensim-SC_OLD-66920a9047b54db947d02f252e17409b7fc32ef0.zip opensim-SC_OLD-66920a9047b54db947d02f252e17409b7fc32ef0.tar.gz opensim-SC_OLD-66920a9047b54db947d02f252e17409b7fc32ef0.tar.bz2 opensim-SC_OLD-66920a9047b54db947d02f252e17409b7fc32ef0.tar.xz |
Fixed more appearance woes that showed up using remote connectors. Appearance is now being passed with AgentCircuitData, as it should be.
Diffstat (limited to 'OpenSim/Framework/AvatarAppearance.cs')
-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 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) |