summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2025-05-15 23:08:52 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-05-16 00:44:30 +0300
commitb5db42e26b64952bdc485bd8a0e0731856f03ae9 (patch)
treee80ad3dd2ba461153439127c2027f1e71ffbf663
parent05557554c39ca938a488c534f74cf8d45e8f7c50 (diff)
#4088 Fix Outfit folders changing to normal folders
when parent copied and pasted
-rw-r--r--indra/newview/llinventoryfunctions.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp
index 3286eca265..1077ce74ae 100644
--- a/indra/newview/llinventoryfunctions.cpp
+++ b/indra/newview/llinventoryfunctions.cpp
@@ -438,7 +438,13 @@ void copy_inventory_category(LLInventoryModel* model,
{
copy_inventory_category_content(new_id, model, cat, root_copy_id, move_no_copy_items);
};
- gInventory.createNewCategory(parent_id, LLFolderType::FT_NONE, cat->getName(), func, cat->getThumbnailUUID());
+ LLFolderType::EType type = LLFolderType::FT_NONE;
+ if (cat->getPreferredType() == LLFolderType::FT_OUTFIT)
+ {
+ // at the moment only permitting copy of outfits and normal folders
+ type = LLFolderType::FT_OUTFIT;
+ }
+ gInventory.createNewCategory(parent_id, type, cat->getName(), func, cat->getThumbnailUUID());
}
void copy_inventory_category(LLInventoryModel* model,