mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-24 14:30:54 -05:00
* Fix Publish 3MF export and import of filament variants Variant-bearing filament keys (filament_options_with_variant) hold one value per (slot, variant) in the uncompacted config, but the published path addressed them by slot: export kept the wrong column once an earlier filament had more than one variant, import wrote every material key to receiver variant 0, and Full Publish copied a single variant. Add a column model in PublishSettings: file columns from filament_self_index, exact variant matching, and the column a slot actually prints with (filament_map / filament_volume_map / nozzle types, hybrid mapped through the slot's own volume type). Export rewrites partial material entries to base#col, masks those keys by column instead of slot, and drops a key whose column is foreign, out of range, or whose vector does not match the file layout. Import maps base#col back to the receiver preset's variant with the same name and skips (reports) a miss instead of writing variant 0; plain keys from older publishes keep the positional import. Full Publish copies every variant of the author's slot and sets the copy's filament_extruder_variant. No new file keys: variant-bearing material keys gain a #col suffix. No UI change in this commit. * Fix missing includes * Fix unit tests * Fix unit tests
OrcaSlicer tests
Building, running and writing tests is documented on the wiki, under How to Test.
Two files here rather than there, because coding agents only read what is in the repository: