Export: no panic on vehicle parts without coat entries #256
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!256
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/256/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-25 11:31 UTC · original
holdmysocks:claude/coat-export-panic→master· +4 −1 · 1 files · 1 commits · merged 2026-11-25 11:50 UTCWhat
Since PR 253 the export panics ("no entry found for key") on a model whose part looks carry no coat entries: every shared library part (a wheel, a light bar, a truck bed, whose looks are only
{"shared": true}) and any model without a body paint coat. In the viewer the load thread dies and the vehicle never appears; a CLI export of such a model aborts. SIX-205.Cause: the new
part_colours.coatblock read four keys witho["key"]on a JSON map, which panics on a missing key (indexing a JSON value does not).Fix: the four keys are read with
get, null when absent. One statement inexport.rs.Checked
Not decoded / not done