From 3dd846b600f70037ec0b3578946a32f887d6be24 Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Sat, 12 Jul 2014 14:38:54 +0200 Subject: [PATCH] Stop people from wearing their whole root folder. --- indra/newview/llappearancemgr.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index c76abdf64..773ba2929 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -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);