mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
* 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:
@@ -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);
|
||||
|
||||
|
||||
@@ -401,7 +401,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
if (HasInventoryChanged)
|
||||
{
|
||||
datastore.StorePrimInventory(UUID, TaskInventory);
|
||||
lock (TaskInventory)
|
||||
{
|
||||
datastore.StorePrimInventory(UUID, TaskInventory.Values);
|
||||
}
|
||||
|
||||
HasInventoryChanged = false;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user