Viewer: fit a part's models only on mounting bones the vehicle has #102

Manually merged
github merged 1 commit from gh-pr/102/head into gh-pr/102/base 2026-11-26 20:09:59 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 02:25 UTC · original
holdmysocks:claude/part-bones → master · +9 −0 · 1 files · 1 commits · merged 2026-11-24 02:32 UTC

Follow-up to #95: the user noticed something strange in the middle of the benson.

What

A shared part lists one model per mounting bone: truck side guards come in short, mid and long versions for the chassis lengths (benson's side guard part has 12 models). The viewer fitted every one of them, and placed the ones whose bone the vehicle does not have at the vehicle's origin, so a cluster of guards and brackets sat in the middle of the truck.

Now a model is fitted only when the vehicle has its mounting bone. Bone 0 is the vehicle itself. The pickup bed, which is attached by name (#95), may still fall back to the origin.

Checked

  • benson from two sides: the stray pieces by the fuel tank are gone.
  • The 16 trucks and pickups from #95 re-rendered: all still have their body; the brackets under the flatbeds of biff, mule and iota are gone as well.
  • cargo test -p sixng-gui: 12 passed (no new tests).

Not done

  • That the game picks a part's models by which bones exist is an inference from the data (a model per bone, bones that differ between chassis), not read from code.
  • benson shows no side guards at all now: none of that part's bones is in its skeleton as exported. Whether it should have some was not checked.
**@⁠holdmysocks** on GitHub · 2026-11-24 02:25 UTC · [original](https://github.com/holdmysocks/SixNG/pull/102) `holdmysocks:claude/part-bones` → `master` · +9 −0 · 1 files · 1 commits · merged 2026-11-24 02:32 UTC Follow-up to #95: the user noticed something strange in the middle of the benson. ## What A shared part lists one model per mounting bone: truck side guards come in short, mid and long versions for the chassis lengths (benson's side guard part has 12 models). The viewer fitted every one of them, and placed the ones whose bone the vehicle does not have at the vehicle's origin, so a cluster of guards and brackets sat in the middle of the truck. Now a model is fitted only when the vehicle has its mounting bone. Bone 0 is the vehicle itself. The pickup bed, which is attached by name (#95), may still fall back to the origin. ## Checked - benson from two sides: the stray pieces by the fuel tank are gone. - The 16 trucks and pickups from #95 re-rendered: all still have their body; the brackets under the flatbeds of biff, mule and iota are gone as well. - `cargo test -p sixng-gui`: 12 passed (no new tests). ## Not done - That the game picks a part's models by which bones exist is an inference from the data (a model per bone, bones that differ between chassis), not read from code. - benson shows no side guards at all now: none of that part's bones is in its skeleton as exported. Whether it should have some was not checked.
A part lists a model per mounting bone (truck side guards in short, mid
and long versions for the chassis lengths). The viewer fitted every one,
and put the ones whose bone the vehicle lacks at the vehicle's origin: a
cluster of guards and brackets in the middle of the truck. Now only the
models whose bone exists are fitted (bone 0 is the vehicle itself; the
pickup bed, attached by name, may still fall back to the origin).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:09:59 +00:00
github manually merged commit cd311eedeb into gh-pr/102/base 2026-11-26 20:09:59 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.