Fix issues with outfits when worn clothing items exceed 56 (Max is still 60)

This commit is contained in:
Hecklezz
2026-02-24 03:18:55 +10:00
parent 47cd6e1f70
commit 3d2fb677dc
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -67,6 +67,7 @@ public:
bool isOnTop(LLWearable* wearable) const;
static const U32 MAX_CLOTHING_LAYERS = 60;
static constexpr U32 MAX_BODY_PARTS = 4; // <FS:TJ/> Body part count is always 4
//--------------------------------------------------------------------
// Setters
+1 -1
View File
@@ -2911,7 +2911,7 @@ void LLAppearanceMgr::updateAppearanceFromCOF(bool enforce_item_restrictions,
removeDuplicateItems(wear_items);
removeDuplicateItems(obj_items);
removeDuplicateItems(gest_items);
filterWearableItems(wear_items, 0, LLAgentWearables::MAX_CLOTHING_LAYERS);
filterWearableItems(wear_items, 0, LLAgentWearables::MAX_CLOTHING_LAYERS + LLAgentWearables::MAX_BODY_PARTS);
// [/SL:KB]
dumpItemArray(wear_items,"asset_dump: wear_item");