Vehicles: a part model listed twice on one bone is fitted once #215
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!215
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/215/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 22:26 UTC · original
holdmysocks:claude/double-bumper→master· +20 −3 · 2 files · 1 commits · merged 2026-11-24 22:36 UTCWhat
A model that two fitted parts both place on the same bone is now put on once, in
sixng vehicleand in the viewer.On pickups the rear bumper (and its small mount) is an element of the bed part (body slot
1c9dd6fe) and also of the part in slot8d48fd33, with the same asset and the same bone. Both parts are in the configuration, so the bumper was exported and drawn twice in the same place: invisible in a render, but doubled geometry in the GLB.vehexport.rs: after the fit list is built, repeats of (model, bone) are dropped. What the stock pieces lose (hides) is still taken from every element. The result JSON gainsrepeated_elements_skipped.model_view.rs: the kit placement loop skips a (model, bone) it has already placed.Checked
vehicles.json(format 16, 4,063 configurations): 90 configurations fit one model twice on one bone outside the brake slots: 68 body + slot8d48fd33, 17 slots98b9b49a+c98dbea6, 3 slots46268fee+57f3c1f7, 2 within slot8d0cf489. A further 153 are brake models in two slots, which are not fitted on a bone anyway.sixng vehicle reclaimerclassic: configuration 0 goes from 18 to 16 pieces (218,062 to 214,124 triangles), configuration 8 from 27 to 25;repeated_elements_skippedis 2 in both. Configuration 4 (flatbed, no rear bumper part) is unchanged.reclaimerclassic_hiconfiguration 0 renders with bed, bumper and wheels as before.cargo test --workspace --lockedpasses.Not decoded / not done
8d48fd33is not known.