diff options
author | Melanie | 2013-03-05 13:14:06 +0100 |
---|---|---|
committer | Melanie | 2013-03-05 13:14:06 +0100 |
commit | 51de85b503e3994c2759f411779057afbffd0b83 (patch) | |
tree | 7d3174677a6d49021b0bd0cefb76c4bc6e3ba0f3 /OpenSim/Services/Interfaces | |
parent | Multiattach, part 1 (diff) | |
download | opensim-SC-51de85b503e3994c2759f411779057afbffd0b83.zip opensim-SC-51de85b503e3994c2759f411779057afbffd0b83.tar.gz opensim-SC-51de85b503e3994c2759f411779057afbffd0b83.tar.bz2 opensim-SC-51de85b503e3994c2759f411779057afbffd0b83.tar.xz |
Multiattach, part 2
Diffstat (limited to 'OpenSim/Services/Interfaces')
-rw-r--r-- | OpenSim/Services/Interfaces/IAvatarService.cs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Services/Interfaces/IAvatarService.cs b/OpenSim/Services/Interfaces/IAvatarService.cs index 6011b1c..3663a7a 100644 --- a/OpenSim/Services/Interfaces/IAvatarService.cs +++ b/OpenSim/Services/Interfaces/IAvatarService.cs | |||
@@ -327,10 +327,16 @@ namespace OpenSim.Services.Interfaces | |||
327 | if (!Int32.TryParse(pointStr, out point)) | 327 | if (!Int32.TryParse(pointStr, out point)) |
328 | continue; | 328 | continue; |
329 | 329 | ||
330 | UUID uuid = UUID.Zero; | 330 | List<string> idList = new List<string>(_kvp.Value.Split(new char[] {','})); |
331 | UUID.TryParse(_kvp.Value, out uuid); | ||
332 | 331 | ||
333 | appearance.SetAttachment(point, uuid, UUID.Zero); | 332 | appearance.SetAttachment(point, UUID.Zero, UUID.Zero); |
333 | foreach (string id in idList) | ||
334 | { | ||
335 | UUID uuid = UUID.Zero; | ||
336 | UUID.TryParse(id, out uuid); | ||
337 | |||
338 | appearance.SetAttachment(point | 0x80, uuid, UUID.Zero); | ||
339 | } | ||
334 | } | 340 | } |
335 | 341 | ||
336 | if (appearance.Wearables[AvatarWearable.BODY].Count == 0) | 342 | if (appearance.Wearables[AvatarWearable.BODY].Count == 0) |