Skip to content

Commit 48bae10

Browse files
committed
LLAppearanceMgr::updateAppearanceFromCOF() doesn't properly filter items collected from folder links
1 parent c1f0f57 commit 48bae10

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

indra/newview/llappearancemgr.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2573,6 +2573,11 @@ void LLAppearanceMgr::updateAppearanceFromCOF(bool enforce_item_restrictions,
25732573
remove_non_link_items(wear_items);
25742574
remove_non_link_items(obj_items);
25752575
remove_non_link_items(gest_items);
2576+
// Since we're following folder links we might have picked up new duplicates, or exceeded MAX_CLOTHING_LAYERS
2577+
removeDuplicateItems(wear_items);
2578+
removeDuplicateItems(obj_items);
2579+
removeDuplicateItems(gest_items);
2580+
filterWearableItems(wear_items, 0, LLAgentWearables::MAX_CLOTHING_LAYERS);
25762581

25772582
dumpItemArray(wear_items,"asset_dump: wear_item");
25782583
dumpItemArray(obj_items,"asset_dump: obj_item");

0 commit comments

Comments
 (0)