* Scripts edited within a prim will now be persisted correctly

* On restart the latest save will be restored rather than the very first dragged in scripts
* Also add previously missed out database commits to separate prim inventory commit path (sigh)
This commit is contained in:
Justin Clarke Casey
2008-01-21 16:42:53 +00:00
parent 38991ba0e6
commit 46fe6e2f97
6 changed files with 71 additions and 139 deletions

View File

@@ -63,7 +63,7 @@ namespace OpenSim.Region.Environment.Interfaces
/// Store a prim's inventory
/// </summary>
/// <returns></returns>
void StorePrimInventory(LLUUID primID, IDictionary<LLUUID, TaskInventoryItem> items);
void StorePrimInventory(LLUUID primID, ICollection<TaskInventoryItem> items);
List<SceneObjectGroup> LoadObjects(LLUUID regionUUID);

View File

@@ -401,7 +401,10 @@ namespace OpenSim.Region.Environment.Scenes
{
if (HasInventoryChanged)
{
datastore.StorePrimInventory(UUID, TaskInventory);
lock (TaskInventory)
{
datastore.StorePrimInventory(UUID, TaskInventory.Values);
}
HasInventoryChanged = false;
}

View File

@@ -754,7 +754,7 @@ namespace OpenSim.DataStore.MSSQL
}
// see IRegionDatastore
public void StorePrimInventory(LLUUID primID, IDictionary<LLUUID, TaskInventoryItem> items)
public void StorePrimInventory(LLUUID primID, ICollection<TaskInventoryItem> items)
{
// No implementation yet
}

View File

@@ -51,7 +51,7 @@ namespace OpenSim.DataStore.NullStorage
}
// see IRegionDatastore
public void StorePrimInventory(LLUUID primID, IDictionary<LLUUID, TaskInventoryItem> items)
public void StorePrimInventory(LLUUID primID, ICollection<TaskInventoryItem> items)
{
}