mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Remove bug where iar created folders could not be deleted after relog
New folders need to be created with AssetType.Unknown rather than AssetType.Folder!
This commit is contained in:
@@ -290,11 +290,15 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
|
||||
|
||||
string newFolderName = rawDirsToCreate[i].Remove(identicalNameIdentifierIndex);
|
||||
UUID newFolderId = UUID.Random();
|
||||
|
||||
|
||||
// Asset type has to be Unknown here rather than Folder, otherwise the created folder can't be
|
||||
// deleted once the client has relogged.
|
||||
// The root folder appears to be labelled AssetType.Folder (shows up as "Category" in the client)
|
||||
// even though there is a AssetType.RootCategory
|
||||
destFolder
|
||||
= new InventoryFolderBase(
|
||||
newFolderId, newFolderName, m_userInfo.UserProfile.ID,
|
||||
(short)AssetType.Folder, destFolder.ID, 1);
|
||||
(short)AssetType.Unknown, destFolder.ID, 1);
|
||||
m_scene.InventoryService.AddFolder(destFolder);
|
||||
|
||||
// UUID newFolderId = UUID.Random();
|
||||
|
||||
@@ -410,4 +410,4 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
|
||||
id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user