diff options
author | Justin Clarke Casey | 2008-01-07 22:11:26 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-01-07 22:11:26 +0000 |
commit | 348b79d801a44086413fcf4a781ffa8c4f4b36b6 (patch) | |
tree | 6384f92a4e7eb0606fe9af1d322b20edfcecdf6b /OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | |
parent | * Added Tribal Media to CONTRIBUTORS.txt (diff) | |
download | opensim-SC_OLD-348b79d801a44086413fcf4a781ffa8c4f4b36b6.zip opensim-SC_OLD-348b79d801a44086413fcf4a781ffa8c4f4b36b6.tar.gz opensim-SC_OLD-348b79d801a44086413fcf4a781ffa8c4f4b36b6.tar.bz2 opensim-SC_OLD-348b79d801a44086413fcf4a781ffa8c4f4b36b6.tar.xz |
Trigger persistence of the scripts in a prim's inventory when that inventory is changed/updated/deleted (before the trigger only happened if the prim was moved).
This is still development code - experimental prim inventory persistence cannot yet be enabled by users.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs index c282780..9e2c256 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | |||
@@ -174,6 +174,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
174 | m_inventorySerial++; | 174 | m_inventorySerial++; |
175 | } | 175 | } |
176 | 176 | ||
177 | /// <summary> | ||
178 | /// Remove an item from this prim's inventory | ||
179 | /// </summary> | ||
180 | /// <param name="remoteClient"></param> | ||
181 | /// <param name="localID"></param> | ||
182 | /// <param name="itemID"></param> | ||
183 | /// <returns>Numeric asset type of the item removed.</returns> | ||
177 | public int RemoveInventoryItem(IClientAPI remoteClient, uint localID, LLUUID itemID) | 184 | public int RemoveInventoryItem(IClientAPI remoteClient, uint localID, LLUUID itemID) |
178 | { | 185 | { |
179 | if (localID == LocalID) | 186 | if (localID == LocalID) |
@@ -183,7 +190,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
183 | string type = m_taskInventory[itemID].inv_type; | 190 | string type = m_taskInventory[itemID].inv_type; |
184 | m_taskInventory.Remove(itemID); | 191 | m_taskInventory.Remove(itemID); |
185 | m_inventorySerial++; | 192 | m_inventorySerial++; |
186 | if (type == "lsl_text") | 193 | if (type == "lsltext") |
187 | { | 194 | { |
188 | return 10; | 195 | return 10; |
189 | } | 196 | } |