mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-30 00:45:26 -05:00
update_non_diff_values_to_base_config sizes variant_index to the parent's (inherits-target's) extruder count, and set_with_restore then replaces the child's vector with a parent-sized one. When the child preset has more extruders than the parent (e.g. an IDEX preset inheriting from a single-nozzle base), every key in printer_options_with_variant_1 is truncated to the parent's size on project reload, destroying per-extruder data. Observable symptoms: objects render with the wrong color (often black) after reopening the project, and the printer preset shows a permanent dirty-asterisk that no save/reload cycle can clear. The child's saved value is authoritative for its own extruder count, so skip the parent-shaped merge for the variant-keyed branch when cur > target. Confirmed by loading a 2-extruder IDEX preset inheriting from a single-nozzle base: all 24 variant-keyed options previously truncated from child_size=2 -> 1 are now preserved at size 2. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>