Skip to content

Commit b5db42e

Browse files
committed
#4088 Fix Outfit folders changing to normal folders
when parent copied and pasted
1 parent 0555755 commit b5db42e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

indra/newview/llinventoryfunctions.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,13 @@ void copy_inventory_category(LLInventoryModel* model,
438438
{
439439
copy_inventory_category_content(new_id, model, cat, root_copy_id, move_no_copy_items);
440440
};
441-
gInventory.createNewCategory(parent_id, LLFolderType::FT_NONE, cat->getName(), func, cat->getThumbnailUUID());
441+
LLFolderType::EType type = LLFolderType::FT_NONE;
442+
if (cat->getPreferredType() == LLFolderType::FT_OUTFIT)
443+
{
444+
// at the moment only permitting copy of outfits and normal folders
445+
type = LLFolderType::FT_OUTFIT;
446+
}
447+
gInventory.createNewCategory(parent_id, type, cat->getName(), func, cat->getThumbnailUUID());
442448
}
443449

444450
void copy_inventory_category(LLInventoryModel* model,

0 commit comments

Comments
 (0)