diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index ba70ae5..4019c12 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -532,7 +532,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
532 | return null; | 532 | return null; |
533 | } | 533 | } |
534 | 534 | ||
535 | |||
536 | if (recipientParentFolderId == UUID.Zero) | 535 | if (recipientParentFolderId == UUID.Zero) |
537 | { | 536 | { |
538 | InventoryFolderBase recipientRootFolder = InventoryService.GetRootFolder(recipientId); | 537 | InventoryFolderBase recipientRootFolder = InventoryService.GetRootFolder(recipientId); |
@@ -2086,7 +2085,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
2086 | group.RootPart.IsAttachment = true; | 2085 | group.RootPart.IsAttachment = true; |
2087 | } | 2086 | } |
2088 | 2087 | ||
2089 | AddNewSceneObject(group, true); | 2088 | // If we're rezzing an attachment then don't ask AddNewSceneObject() to update the client since |
2089 | // we'll be doing that later on. Scheduling more than one full update during the attachment | ||
2090 | // process causes some clients to fail to display the attachment properly. | ||
2091 | AddNewSceneObject(group, true, !attachment); | ||
2090 | 2092 | ||
2091 | // m_log.InfoFormat("ray end point for inventory rezz is {0} {1} {2} ", RayEnd.X, RayEnd.Y, RayEnd.Z); | 2093 | // m_log.InfoFormat("ray end point for inventory rezz is {0} {1} {2} ", RayEnd.X, RayEnd.Y, RayEnd.Z); |
2092 | // if attachment we set it's asset id so object updates can reflect that | 2094 | // if attachment we set it's asset id so object updates can reflect that |
@@ -2456,6 +2458,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
2456 | return; | 2458 | return; |
2457 | } | 2459 | } |
2458 | 2460 | ||
2461 | m_log.DebugFormat("[SCENE INVENTORY]: {0} {1} IsAttachment={2}", att.Name, att.LocalId, att.IsAttachment); | ||
2462 | Console.WriteLine("HERE X"); | ||
2459 | ScenePresence presence; | 2463 | ScenePresence presence; |
2460 | if (TryGetAvatar(remoteClient.AgentId, out presence)) | 2464 | if (TryGetAvatar(remoteClient.AgentId, out presence)) |
2461 | { | 2465 | { |
@@ -2463,9 +2467,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
2463 | InventoryItemBase item = new InventoryItemBase(itemID, remoteClient.AgentId); | 2467 | InventoryItemBase item = new InventoryItemBase(itemID, remoteClient.AgentId); |
2464 | item = InventoryService.GetItem(item); | 2468 | item = InventoryService.GetItem(item); |
2465 | presence.Appearance.SetAttachment((int)AttachmentPt, itemID, item.AssetID /*att.UUID*/); | 2469 | presence.Appearance.SetAttachment((int)AttachmentPt, itemID, item.AssetID /*att.UUID*/); |
2470 | Console.WriteLine("HERE Y"); | ||
2466 | 2471 | ||
2467 | if (m_AvatarFactory != null) | 2472 | if (m_AvatarFactory != null) |
2468 | m_AvatarFactory.UpdateDatabase(remoteClient.AgentId, presence.Appearance); | 2473 | m_AvatarFactory.UpdateDatabase(remoteClient.AgentId, presence.Appearance); |
2474 | |||
2475 | Console.WriteLine("HERE Z"); | ||
2469 | } | 2476 | } |
2470 | } | 2477 | } |
2471 | 2478 | ||