mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Mantis#1594. Thank you, Melanie for a patch that:
Fixes: - Wearable icon and name sreset to default on copy/paste - Cache is not updated when renaming/moving folders - Partial refactor to make inventory less dependen on AssetBase having a "Name" field - Add llGiveInventoryList() function
This commit is contained in:
@@ -380,6 +380,13 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
baseFolder.Version = RootFolder.Version;
|
||||
|
||||
m_commsManager.InventoryService.UpdateFolder(baseFolder);
|
||||
|
||||
InventoryFolderImpl folder=RootFolder.FindFolder(folderID);
|
||||
if(folder != null)
|
||||
{
|
||||
folder.Name = name;
|
||||
folder.ParentID = parentID;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -416,6 +423,10 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
|
||||
m_commsManager.InventoryService.MoveFolder(baseFolder);
|
||||
|
||||
InventoryFolderImpl folder=RootFolder.FindFolder(folderID);
|
||||
if(folder != null)
|
||||
folder.ParentID = parentID;
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user