diff options
author | Brian McBee | 2007-12-08 20:41:37 +0000 |
---|---|---|
committer | Brian McBee | 2007-12-08 20:41:37 +0000 |
commit | 383eccc543e402710bb48802c6951b94d185a6a8 (patch) | |
tree | 17b1730a5e6bc3783d54e3cf0166da2196f8a9a5 /OpenSim/Region/ClientStack/ClientView.cs | |
parent | Allow moving, deleting, and restoring objects in inventory. (diff) | |
download | opensim-SC_OLD-383eccc543e402710bb48802c6951b94d185a6a8.zip opensim-SC_OLD-383eccc543e402710bb48802c6951b94d185a6a8.tar.gz opensim-SC_OLD-383eccc543e402710bb48802c6951b94d185a6a8.tar.bz2 opensim-SC_OLD-383eccc543e402710bb48802c6951b94d185a6a8.tar.xz |
hackish code to allow emptying of trash. This really should be done on the inventory server, and not from the region.
Also: it appeared to work the first try, so I have probably done something horribly wrong.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index e40c689..7b6ea97 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -430,6 +430,7 @@ namespace OpenSim.Region.ClientStack | |||
430 | public event CreateNewInventoryItem OnCreateNewInventoryItem; | 430 | public event CreateNewInventoryItem OnCreateNewInventoryItem; |
431 | public event CreateInventoryFolder OnCreateNewInventoryFolder; | 431 | public event CreateInventoryFolder OnCreateNewInventoryFolder; |
432 | public event FetchInventoryDescendents OnFetchInventoryDescendents; | 432 | public event FetchInventoryDescendents OnFetchInventoryDescendents; |
433 | public event PurgeInventoryDescendents OnPurgeInventoryDescendents; | ||
433 | public event FetchInventory OnFetchInventory; | 434 | public event FetchInventory OnFetchInventory; |
434 | public event RequestTaskInventory OnRequestTaskInventory; | 435 | public event RequestTaskInventory OnRequestTaskInventory; |
435 | public event UpdateInventoryItem OnUpdateInventoryItem; | 436 | public event UpdateInventoryItem OnUpdateInventoryItem; |
@@ -2827,6 +2828,13 @@ namespace OpenSim.Region.ClientStack | |||
2827 | Fetch.InventoryData.SortOrder); | 2828 | Fetch.InventoryData.SortOrder); |
2828 | } | 2829 | } |
2829 | break; | 2830 | break; |
2831 | case PacketType.PurgeInventoryDescendents: | ||
2832 | if (OnPurgeInventoryDescendents != null) | ||
2833 | { | ||
2834 | PurgeInventoryDescendentsPacket Purge = (PurgeInventoryDescendentsPacket)Pack; | ||
2835 | OnPurgeInventoryDescendents(this, Purge.InventoryData.FolderID); | ||
2836 | } | ||
2837 | break; | ||
2830 | case PacketType.UpdateInventoryItem: | 2838 | case PacketType.UpdateInventoryItem: |
2831 | UpdateInventoryItemPacket update = (UpdateInventoryItemPacket) Pack; | 2839 | UpdateInventoryItemPacket update = (UpdateInventoryItemPacket) Pack; |
2832 | if (OnUpdateInventoryItem != null) | 2840 | if (OnUpdateInventoryItem != null) |