From 66920a9047b54db947d02f252e17409b7fc32ef0 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Tue, 12 Jan 2010 09:22:58 -0800 Subject: Fixed more appearance woes that showed up using remote connectors. Appearance is now being passed with AgentCircuitData, as it should be. --- OpenSim/Framework/AvatarAppearance.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'OpenSim/Framework/AvatarAppearance.cs') 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 private Dictionary m_attachments = new Dictionary(); + public void SetAttachments(AttachmentData[] data) + { + foreach (AttachmentData a in data) + { + m_attachments[a.AttachPoint] = new UUID[2]; + m_attachments[a.AttachPoint][0] = a.ItemID; + m_attachments[a.AttachPoint][1] = a.AssetID; + } + } + public void SetAttachments(Hashtable data) { m_attachments.Clear(); @@ -595,6 +605,11 @@ namespace OpenSim.Framework } } + public Dictionary GetAttachmentDictionary() + { + return m_attachments; + } + public Hashtable GetAttachments() { if (m_attachments.Count == 0) -- cgit v1.1