MAINT-6084 FIXED Replacing current outfit with contents of a non-outfit folder creates folder link in COF

master
Mnikolenko ProductEngine 2016-02-01 13:00:58 +02:00
parent f532e115e4
commit 24c621190f
1 changed files with 1 additions and 1 deletions

View File

@ -2055,7 +2055,7 @@ void LLAppearanceMgr::updateCOF(const LLUUID& category, bool append)
}
const LLUUID& base_id = append ? getBaseOutfitUUID() : category;
LLViewerInventoryCategory *base_cat = gInventory.getCategory(base_id);
if (base_cat)
if (base_cat && (base_cat->getPreferredType() == LLFolderType::FT_OUTFIT))
{
LLSD base_contents;
base_contents["name"] = base_cat->getName();