diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.API.cs | 1 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | 12 |
2 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs index 428fb77..8729b58 100644 --- a/OpenSim/Region/ClientStack/ClientView.API.cs +++ b/OpenSim/Region/ClientStack/ClientView.API.cs | |||
@@ -87,6 +87,7 @@ namespace OpenSim.Region.ClientStack | |||
87 | public event FetchInventoryDescendents OnFetchInventoryDescendents; | 87 | public event FetchInventoryDescendents OnFetchInventoryDescendents; |
88 | public event FetchInventory OnFetchInventory; | 88 | public event FetchInventory OnFetchInventory; |
89 | public event RequestTaskInventory OnRequestTaskInventory; | 89 | public event RequestTaskInventory OnRequestTaskInventory; |
90 | public event UpdateInventoryItemTransaction OnUpdateInventoryItem; | ||
90 | public event UDPAssetUploadRequest OnAssetUploadRequest; | 91 | public event UDPAssetUploadRequest OnAssetUploadRequest; |
91 | public event XferReceive OnXferReceive; | 92 | public event XferReceive OnXferReceive; |
92 | public event RequestXfer OnRequestXfer; | 93 | public event RequestXfer OnRequestXfer; |
diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs index 903ddcc..592254a 100644 --- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs +++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | |||
@@ -418,6 +418,16 @@ namespace OpenSim.Region.ClientStack | |||
418 | break; | 418 | break; |
419 | case PacketType.UpdateInventoryItem: | 419 | case PacketType.UpdateInventoryItem: |
420 | UpdateInventoryItemPacket update = (UpdateInventoryItemPacket)Pack; | 420 | UpdateInventoryItemPacket update = (UpdateInventoryItemPacket)Pack; |
421 | if (OnUpdateInventoryItem != null) | ||
422 | { | ||
423 | for (int i = 0; i < update.InventoryData.Length; i++) | ||
424 | { | ||
425 | if (update.InventoryData[i].TransactionID != LLUUID.Zero) | ||
426 | { | ||
427 | OnUpdateInventoryItem(this, update.InventoryData[i].TransactionID, update.InventoryData[i].TransactionID.Combine(this.SecureSessionID), update.InventoryData[i].ItemID); | ||
428 | } | ||
429 | } | ||
430 | } | ||
421 | //Console.WriteLine(Pack.ToString()); | 431 | //Console.WriteLine(Pack.ToString()); |
422 | /*for (int i = 0; i < update.InventoryData.Length; i++) | 432 | /*for (int i = 0; i < update.InventoryData.Length; i++) |
423 | { | 433 | { |
@@ -457,7 +467,7 @@ namespace OpenSim.Region.ClientStack | |||
457 | } | 467 | } |
458 | break; | 468 | break; |
459 | case PacketType.UpdateTaskInventory: | 469 | case PacketType.UpdateTaskInventory: |
460 | //Console.WriteLine(Pack.ToString()); | 470 | //Console.WriteLine(Pack.ToString()); |
461 | UpdateTaskInventoryPacket updatetask = (UpdateTaskInventoryPacket)Pack; | 471 | UpdateTaskInventoryPacket updatetask = (UpdateTaskInventoryPacket)Pack; |
462 | break; | 472 | break; |
463 | case PacketType.RezScript: | 473 | case PacketType.RezScript: |