Vehicles: shared truck beds and other library parts take the colours of the vehicle they are on #136
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!136
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/136/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 11:35 UTC · original
holdmysocks:claude/shared-bed-colours→master· +70 −9 · 3 files · 1 commits · merged 2026-11-24 11:42 UTCWhat
The beds and boxes that several trucks share (41
truckbeds_*models), and the other library part models that configurations name, showed in stand-in grey. They have no vehicle of their own, so no part set was found for them.Their vertices carry part ids like a vehicle's own meshes, and an id means the same piece in every vehicle's part set (the ids the beds use hold the same records in about 150 of the 338 sets). The configuration that fits a bed already recolours those ids in the truck's set. So a shared part takes the colours of the vehicle and configuration it is on.
vehicle_parts.json(format 17) getsshared_parts: library part model (joaat of its name) -> the part set of the first configuration that names the part. 980 models.model.jsonpart_colours.shared_partis true for it, with a note (part colours version 18, so the viewer exports these models again).Checked
truckbeds_box_01_hi,truckbeds_flatbed_01_hi,truckbeds_tipper_04_lrg_hi): statusapplied,shared_parttrue.cargo test -p sixng-core vehcolourpasses.Not decoded / not done