diff options
author | Melanie | 2013-03-05 13:14:06 +0100 |
---|---|---|
committer | Melanie | 2013-03-18 22:56:17 +0000 |
commit | d07943c262adfb824e9a4a3954fc26b19073a8a6 (patch) | |
tree | 2fd036c056f696d2a0fd761848dff2d14199e363 /OpenSim/Services/Interfaces | |
parent | Multiattach, part 1 (diff) | |
download | opensim-SC-d07943c262adfb824e9a4a3954fc26b19073a8a6.zip opensim-SC-d07943c262adfb824e9a4a3954fc26b19073a8a6.tar.gz opensim-SC-d07943c262adfb824e9a4a3954fc26b19073a8a6.tar.bz2 opensim-SC-d07943c262adfb824e9a4a3954fc26b19073a8a6.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 606e82c..6ca0b15 100644 --- a/OpenSim/Services/Interfaces/IAvatarService.cs +++ b/OpenSim/Services/Interfaces/IAvatarService.cs | |||
@@ -311,10 +311,16 @@ namespace OpenSim.Services.Interfaces | |||
311 | if (!Int32.TryParse(pointStr, out point)) | 311 | if (!Int32.TryParse(pointStr, out point)) |
312 | continue; | 312 | continue; |
313 | 313 | ||
314 | UUID uuid = UUID.Zero; | 314 | List<string> idList = new List<string>(_kvp.Value.Split(new char[] {','})); |
315 | UUID.TryParse(_kvp.Value, out uuid); | ||
316 | 315 | ||
317 | appearance.SetAttachment(point, uuid, UUID.Zero); | 316 | appearance.SetAttachment(point, UUID.Zero, UUID.Zero); |
317 | foreach (string id in idList) | ||
318 | { | ||
319 | UUID uuid = UUID.Zero; | ||
320 | UUID.TryParse(id, out uuid); | ||
321 | |||
322 | appearance.SetAttachment(point | 0x80, uuid, UUID.Zero); | ||
323 | } | ||
318 | } | 324 | } |
319 | 325 | ||
320 | if (appearance.Wearables[AvatarWearable.BODY].Count == 0) | 326 | if (appearance.Wearables[AvatarWearable.BODY].Count == 0) |