mirror of
https://github.com/FirestormViewer/phoenix-firestorm.git
synced 2026-08-14 00:48:30 +00:00
Fix issues with outfits when worn clothing items exceed 56 (Max is still 60)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user