RacesOfValheim/JotunnModStub/Dvergur
kanym d157a730a3 fix(dvergur): carve the hood out of the dvergr mesh as a submesh
The log settled it: the Dverger prefab holds a single renderer, dvergr, with
the hood, body and clothes baked into one mesh. There was never a separate
object to lift out, so the whole-object search could only ever fail.

Resolution now falls through three steps - a separate renderer object, a
submesh picked out by its material name, and an index pinned by hand in
DvergurConfig - and the submesh path rebuilds the chosen triangles as a
standalone skinned renderer. Vertices, bone weights and bindposes are all
carried over untouched and only the triangle list is narrowed, so the skinning
still lines up and the player rig places the hood without any offsets.

The candidate list also covers the mage variants, which wear a different hood
and may keep it as its own object.

dumpdverger now reports submesh count, per-submesh material and triangle count,
which is the part that actually identifies the hood.
2026-08-02 23:14:07 +02:00
..
DvergurAbilities.cs feat(dvergur): add the Dvergur race scaffold 2026-08-02 21:45:44 +02:00
DvergurConfig.cs fix(dvergur): carve the hood out of the dvergr mesh as a submesh 2026-08-02 23:14:07 +02:00
DvergurPatches.cs fix(dvergur): tint the skin from UpdateColors, and raise the height 2026-08-02 23:08:12 +02:00
DvergurProgression.cs feat(dvergur): add the Dvergur race scaffold 2026-08-02 21:45:44 +02:00
DvergurRace.cs fix(dvergur): correct the health malus, body scale and hood 2026-08-02 22:58:11 +02:00
DvergurStatusEffects.cs feat(dvergur): add the Dvergur race scaffold 2026-08-02 21:45:44 +02:00
DvergurVisuals.cs fix(dvergur): carve the hood out of the dvergr mesh as a submesh 2026-08-02 23:14:07 +02:00