mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Multiattach, part 1
Conflicts: OpenSim/Framework/AvatarAppearance.cs OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs OpenSim/Region/Framework/Scenes/Scene.cs OpenSim/Region/OptionalModules/Avatar/Attachments/TempAttachmentsModule.cs OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
This commit is contained in:
@@ -174,11 +174,18 @@ namespace OpenSim.Services.Interfaces
|
||||
|
||||
// Attachments
|
||||
List<AvatarAttachment> attachments = appearance.GetAttachments();
|
||||
Dictionary<int, List<string>> atts = new Dictionary<int, List<string>>();
|
||||
foreach (AvatarAttachment attach in attachments)
|
||||
{
|
||||
if (attach.ItemID != UUID.Zero)
|
||||
Data["_ap_" + attach.AttachPoint] = attach.ItemID.ToString();
|
||||
{
|
||||
if (!atts.ContainsKey(attach.AttachPoint))
|
||||
atts[attach.AttachPoint] = new List<string>();
|
||||
atts[attach.AttachPoint].Add(attach.ItemID.ToString());
|
||||
}
|
||||
}
|
||||
foreach (KeyValuePair<int, List<string>> kvp in atts)
|
||||
Data["_ap_" + kvp.Key] = string.Join(",", kvp.Value.ToArray());
|
||||
}
|
||||
|
||||
public AvatarAppearance ToAvatarAppearance()
|
||||
|
||||
Reference in New Issue
Block a user