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