Painted hair: find a hair item's layer set by its own tag, not by its drawable name #360

Manually merged
github merged 3 commits from gh-pr/360/head into gh-pr/360/base 2026-11-26 20:30:22 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-26 05:46 UTC · original
holdmysocks:claude/people-hair-layer → master · +26 −10 · 4 files · 3 commits · merged 2026-11-26 06:48 UTC

Lucia's scalp was bare skin under her strands. The game paints hair colour onto the head skin under strand hair, and the viewer already draws those painted layers, but it found none for her hair.

Cause. The viewer looked a hair item's layer set up by the hash of its drawable name without _full. That is what most items carry in their layer-set tag (023e5a2f), but an item can inherit a different value from a parent item. Lucia's default ponytail inherits a set whose name differs from its drawable name, and its drawable name matches no set.

Change. Wardrobe parts and look parts now carry the layer-set tag, taken first along the item's chain the same way the colour preset is. The viewer looks the layers up by it and falls back to the drawable name when the tag is missing.

Result. Lucia's scalp now gets her painted hair layer: dark brown, with a crown whorl, under the strands.

The strand widening from #345 was re-tested with the layer on and still stays. The scalp is covered either way now, but long hair away from the scalp (her ponytail, Mandy's lengths) goes see-through without it.

Tests: cargo test --release -p sixng-core -p sixng-gui -p sixng-cli pass.

**@⁠holdmysocks** on GitHub · 2026-11-26 05:46 UTC · [original](https://github.com/holdmysocks/SixNG/pull/360) `holdmysocks:claude/people-hair-layer` → `master` · +26 −10 · 4 files · 3 commits · merged 2026-11-26 06:48 UTC Lucia's scalp was bare skin under her strands. The game paints hair colour onto the head skin under strand hair, and the viewer already draws those painted layers, but it found none for her hair. **Cause.** The viewer looked a hair item's layer set up by the hash of its drawable name without `_full`. That is what most items carry in their layer-set tag (`023e5a2f`), but an item can inherit a different value from a parent item. Lucia's default ponytail inherits a set whose name differs from its drawable name, and its drawable name matches no set. **Change.** Wardrobe parts and look parts now carry the layer-set tag, taken first along the item's chain the same way the colour preset is. The viewer looks the layers up by it and falls back to the drawable name when the tag is missing. **Result.** Lucia's scalp now gets her painted hair layer: dark brown, with a crown whorl, under the strands. The strand widening from #345 was re-tested with the layer on and still stays. The scalp is covered either way now, but long hair away from the scalp (her ponytail, Mandy's lengths) goes see-through without it. Tests: `cargo test --release -p sixng-core -p sixng-gui -p sixng-cli` pass.
The head skin's painted hair layers (the hair colour on the scalp under
the strands) are looked up by layer-set name. The viewer used the hash of
the hair drawable's name, which is what most items carry in their tag
023e5a2f. Some items inherit a different value from a parent item: Lucia's
default ponytail does, and its own name matches no set, so her scalp was
left bare under the strands. Wardrobe parts now carry the tag (first
along the item's chain, like the colour preset), and the viewer looks the
layers up by it, falling back to the name.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:30:21 +00:00
github manually merged commit 61c2776ac9 into gh-pr/360/base 2026-11-26 20:30:22 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.