diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/InventoryItemBase.cs | 6 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs index b5bf92f..7150c82 100644 --- a/OpenSim/Framework/InventoryItemBase.cs +++ b/OpenSim/Framework/InventoryItemBase.cs | |||
@@ -364,6 +364,12 @@ namespace OpenSim.Framework | |||
364 | ID = id; | 364 | ID = id; |
365 | } | 365 | } |
366 | 366 | ||
367 | public InventoryItemBase(UUID id, UUID owner) | ||
368 | { | ||
369 | ID = id; | ||
370 | Owner = owner; | ||
371 | } | ||
372 | |||
367 | public object Clone() | 373 | public object Clone() |
368 | { | 374 | { |
369 | return MemberwiseClone(); | 375 | return MemberwiseClone(); |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index f5e9be1..46777e1 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -2309,7 +2309,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
2309 | ScenePresence presence; | 2309 | ScenePresence presence; |
2310 | if (TryGetAvatar(remoteClient.AgentId, out presence)) | 2310 | if (TryGetAvatar(remoteClient.AgentId, out presence)) |
2311 | { | 2311 | { |
2312 | presence.Appearance.SetAttachment((int)AttachmentPt, itemID, att.UUID); | 2312 | InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID, remoteClient.AgentId)); |
2313 | |||
2314 | presence.Appearance.SetAttachment((int)AttachmentPt, itemID, item.AssetID /*att.UUID*/); | ||
2313 | IAvatarFactory ava = RequestModuleInterface<IAvatarFactory>(); | 2315 | IAvatarFactory ava = RequestModuleInterface<IAvatarFactory>(); |
2314 | if (ava != null) | 2316 | if (ava != null) |
2315 | { | 2317 | { |