Wardrobe: prefer tag names and ped body class / head prefix in ped-variations #70
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!70
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/70/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Ahmet-Dedeler on GitHub · 2026-11-23 18:53 UTC · original
Ahmet-Dedeler:fix/wardrobe-drawable-pick→master· +103 −13 · 1 files · 1 commits · merged 2026-11-23 19:11 UTCIn
wardrobe::variations(), drawable selection previously picked the highest-texture-count model globally and broke ties alphabetically, only falling back to an item's resolved tag name whencountswas empty. That caused three recurring mis-picks on ped wardrobe resources:4bfd27dd/023e5a2f/2a8cdb1d) resolved to their exact prefix were overridden whenever another drawable shared the same texture count and sorted earlier (e.g. dummy strand-hair drawables resolving to an unrelated infant brow drawable, or numbered garment variants shifting to an earlier index).fc1,fr1,mr1, etc.) broke ties alphabetically into the wrong class.Changes (
crates/sixng-core/src/wardrobe.rs)fr1,mr1,fc1, etc.) from tag-resolved item names across the resource.4bfd27dd, walking parent chains) when present.pick_with_name), falling back to the tag's_fulldrawable rather than an unrelated texture-count tie.pick_for()by head stem match, ped body class,_fullsuffix, then name. Existingpick()signature is preserved.pick_for_breaks_ties_by_head_prefix_and_body_classandpick_with_name_prefers_tag_prefix_over_shared_dummy_texture.Verification
cargo test -p sixng-core --no-default-features: 139 passed, 0 failed.packs.rpfwardrobe resource (387e010): all hair/brow items, garment tag overrides, body class parts (fr1), and head-set eyes now resolve to their matching drawables.