diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index cedf405..2aad4f0 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -1225,6 +1225,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1225 | item = CommsManager.UserProfileCacheService.LibraryRoot.FindItem(itemID); | 1225 | item = CommsManager.UserProfileCacheService.LibraryRoot.FindItem(itemID); |
1226 | } | 1226 | } |
1227 | 1227 | ||
1228 | // If we've found the item in the user's inventory or in the library | ||
1228 | if (item != null) | 1229 | if (item != null) |
1229 | { | 1230 | { |
1230 | part.ParentGroup.AddInventoryItem(remoteClient, primLocalID, item, copyID); | 1231 | part.ParentGroup.AddInventoryItem(remoteClient, primLocalID, item, copyID); |
@@ -2458,6 +2459,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
2458 | return; | 2459 | return; |
2459 | } | 2460 | } |
2460 | 2461 | ||
2462 | // m_log.DebugFormat("[SCENE INVENTORY]: {0} {1} IsAttachment={2}", att.Name, att.LocalId, att.IsAttachment); | ||
2463 | // Console.WriteLine("HERE X"); | ||
2461 | ScenePresence presence; | 2464 | ScenePresence presence; |
2462 | if (TryGetAvatar(remoteClient.AgentId, out presence)) | 2465 | if (TryGetAvatar(remoteClient.AgentId, out presence)) |
2463 | { | 2466 | { |
@@ -2465,9 +2468,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
2465 | InventoryItemBase item = new InventoryItemBase(itemID, remoteClient.AgentId); | 2468 | InventoryItemBase item = new InventoryItemBase(itemID, remoteClient.AgentId); |
2466 | item = InventoryService.GetItem(item); | 2469 | item = InventoryService.GetItem(item); |
2467 | presence.Appearance.SetAttachment((int)AttachmentPt, itemID, item.AssetID /*att.UUID*/); | 2470 | presence.Appearance.SetAttachment((int)AttachmentPt, itemID, item.AssetID /*att.UUID*/); |
2471 | // Console.WriteLine("HERE Y"); | ||
2468 | 2472 | ||
2469 | if (m_AvatarFactory != null) | 2473 | if (m_AvatarFactory != null) |
2470 | m_AvatarFactory.UpdateDatabase(remoteClient.AgentId, presence.Appearance); | 2474 | m_AvatarFactory.UpdateDatabase(remoteClient.AgentId, presence.Appearance); |
2475 | |||
2476 | // Console.WriteLine("HERE Z"); | ||
2471 | } | 2477 | } |
2472 | } | 2478 | } |
2473 | 2479 | ||