Multiattach, part 2

user_profiles
Melanie 2013-03-05 13:14:06 +01:00
parent fcecfc81bb
commit d07943c262
1 changed files with 9 additions and 3 deletions

View File

@ -311,10 +311,16 @@ namespace OpenSim.Services.Interfaces
if (!Int32.TryParse(pointStr, out point))
continue;
UUID uuid = UUID.Zero;
UUID.TryParse(_kvp.Value, out uuid);
List<string> idList = new List<string>(_kvp.Value.Split(new char[] {','}));
appearance.SetAttachment(point, uuid, UUID.Zero);
appearance.SetAttachment(point, UUID.Zero, UUID.Zero);
foreach (string id in idList)
{
UUID uuid = UUID.Zero;
UUID.TryParse(id, out uuid);
appearance.SetAttachment(point | 0x80, uuid, UUID.Zero);
}
}
if (appearance.Wearables[AvatarWearable.BODY].Count == 0)