some more suport for a new inventory and asset type
parent
182b266ec4
commit
563d5d30ee
|
@ -226,7 +226,6 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
|||
groupmask = (uint)PermissionMask.AllAndExport;
|
||||
everyonemask = (uint)(PermissionMask.AllAndExport & ~PermissionMask.Modify);
|
||||
}
|
||||
/*
|
||||
if(assetType == (byte)AssetType.Settings)
|
||||
{
|
||||
if(data == null)
|
||||
|
@ -244,9 +243,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
|||
}
|
||||
flags = subType;
|
||||
}
|
||||
else
|
||||
*/
|
||||
if( assetType == (byte)AssetType.Clothing ||
|
||||
else if( assetType == (byte)AssetType.Clothing ||
|
||||
assetType == (byte)AssetType.Bodypart)
|
||||
flags = subType;
|
||||
|
||||
|
|
|
@ -210,6 +210,8 @@ namespace OpenSim.Services.HypergridService
|
|||
CreateFolder(principalID, rootID, (int)FolderType.Texture, "Textures");
|
||||
if (!Array.Exists(sysFolders, delegate(XInventoryFolder f) { if (f.type == (int)FolderType.Trash) return true; return false; }))
|
||||
CreateFolder(principalID, rootID, (int)FolderType.Trash, "Trash");
|
||||
if (!Array.Exists(sysFolders, delegate (XInventoryFolder f) { if (f.type == (int)FolderType.Settings) return true; return false; }))
|
||||
CreateFolder(principalID, rootID, (int)FolderType.Settings, "Settings");
|
||||
}
|
||||
|
||||
public override InventoryFolderBase GetFolderForType(UUID principalID, FolderType type)
|
||||
|
|
|
@ -153,6 +153,8 @@ namespace OpenSim.Services.InventoryService
|
|||
CreateFolder(principalID, rootFolder.ID, (int)FolderType.Texture, "Textures");
|
||||
if (!Array.Exists(sysFolders, delegate(XInventoryFolder f) { if (f.type == (int)FolderType.Trash) return true; return false; }))
|
||||
CreateFolder(principalID, rootFolder.ID, (int)FolderType.Trash, "Trash");
|
||||
if (!Array.Exists(sysFolders, delegate (XInventoryFolder f) { if (f.type == (int)FolderType.Settings) return true; return false; }))
|
||||
CreateFolder(principalID, rootFolder.ID, (int)FolderType.Settings, "Settings");
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue