diff options
author | Justin Clarke Casey | 2008-01-11 17:00:21 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-01-11 17:00:21 +0000 |
commit | 48be04df1d804137a736d83de157265555a63d31 (patch) | |
tree | f4fbf722ab2dba911da0f7f37138be9c41019067 /OpenSim/Region/Environment | |
parent | manually open the db connection. Mono does this automatically, .NET doesn't (diff) | |
download | opensim-SC_OLD-48be04df1d804137a736d83de157265555a63d31.zip opensim-SC_OLD-48be04df1d804137a736d83de157265555a63d31.tar.gz opensim-SC_OLD-48be04df1d804137a736d83de157265555a63d31.tar.bz2 opensim-SC_OLD-48be04df1d804137a736d83de157265555a63d31.tar.xz |
* Do database implementation for prim inventory items in mysql
* Properly clean up items when a region object is deleted
* Update persisted prim when an inventory script is changed
* No user functionality yet
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs index b188fdd..d694f67 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs | |||
@@ -235,6 +235,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
235 | if (part != null) | 235 | if (part != null) |
236 | { | 236 | { |
237 | part.UpdateInventoryItem(item); | 237 | part.UpdateInventoryItem(item); |
238 | |||
239 | // It might seem somewhat crude to update the whole group for a single prim inventory change, | ||
240 | // but it's possible that other prim inventory changes will take place before the region | ||
241 | // persistence thread visits this object. In the future, changes can be signalled at a more | ||
242 | // granular level, or we could let the datastore worry about whether prims have really | ||
243 | // changed since they were last persisted. | ||
244 | HasChanged = true; | ||
238 | 245 | ||
239 | return true; | 246 | return true; |
240 | } | 247 | } |