mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
First attempt to get multiple attachments working to support viewer2.
The attachment code appears to work correctly for 1.23 viewers so, in spite of some big changes in the internal representation, there don't appear to be regressions. That being said, I still can't get a viewer2 avatar to show correctly.
This commit is contained in:
@@ -178,17 +178,11 @@ namespace OpenSim.Services.Interfaces
|
||||
Data["UnderShirtAsset"] = appearance.UnderShirtAsset.ToString();
|
||||
|
||||
// Attachments
|
||||
Hashtable attachs = appearance.GetAttachments();
|
||||
if (attachs != null)
|
||||
foreach (DictionaryEntry dentry in attachs)
|
||||
{
|
||||
if (dentry.Value != null)
|
||||
{
|
||||
Hashtable tab = (Hashtable)dentry.Value;
|
||||
if (tab.ContainsKey("item") && tab["item"] != null)
|
||||
Data["_ap_" + dentry.Key] = tab["item"].ToString();
|
||||
}
|
||||
}
|
||||
List<AvatarAttachment> attachments = appearance.GetAttachments();
|
||||
foreach (AvatarAttachment attach in attachments)
|
||||
{
|
||||
Data["_ap_" + attach.AttachPoint] = attach.ItemID.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
public AvatarAppearance ToAvatarAppearance(UUID owner)
|
||||
|
||||
Reference in New Issue
Block a user