Textures: Used by lists heads and characters for ped skin textures #105
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!105
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/105/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?
@holdmysocks on GitHub · 2026-11-24 02:42 UTC · original
holdmysocks:fix/related-textures-heads→master· +214 −1 · 3 files · 1 commits · merged 2026-11-24 03:01 UTCFixes #96.
The bug
"Used by" in the Textures tab said "No material in the indexed models uses this texture" for head textures. It is wider than heads: no drawable binds ped skin textures at all. A head's face colour and normal, the body's normal, detail and mask maps, and the eyes' colour are named only by wardrobe items (
States->Asset), so the texture-users index, which is built from model materials, has nothing for them. Checked against the index: a face albedo, a face normal, a body normal, a body mask, a body detail map and an eye albedo all have zero users; a teeth albedo has four (teeth drawables bind theirs).The fix
pedlook::wardrobe_textures: store hash -> (wardrobe resource, head drawable named by the item's tag4bfd27dd), built once from the packs index (about a minute) and cached as<work>/index/wardrobe_textures.json(11 MB).Verified
cargo test --workspace: 144 core and 12 viewer tests pass.Not verified
open_modelthe material list uses).Files
crates/sixng-core/src/pedlook.rs(one new table),crates/sixng-gui/src/texture_view.rs,README.md.