Stop people from wearing their whole root folder.

This commit is contained in:
Aleric Inglewood
2014-07-12 14:38:54 +02:00
parent 6ccca51fee
commit 3dd846b600

View File

@@ -4465,7 +4465,9 @@ public:
LLFolderType::FT_CLOTHING,
"Quick Appearance");
LLSD::UUID folder_uuid = query_map["folder_id"].asUUID();
if ( gInventory.getCategory( folder_uuid ) != NULL )
if ( gInventory.getCategory( folder_uuid ) != NULL &&
folder_uuid != gInventory.getRootFolderID() &&
folder_uuid != gInventory.getLibraryRootFolderID() )
{
LLAppearanceMgr::getInstance()->wearInventoryCategory(category, true, false);