mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-11 09:51:06 +00:00
PartPlate::calc_imex_zones, GCodeViewer::render, and Plater::collect_imex_warnings each hand-rolled their own "phys:P/C/M" tokenizer with subtly different error handling. Replace the three inline loops with parse_imex_active_tools + imex_primary_tool_for_mode so the Primary/Copy/Mirror classification agrees across zones, the G-code viewer legend, and slice warnings. No behavior change: the shared helpers preserve the 1=Primary / 2=Copy / 3=Mirror encoding already consumed downstream and continue to accept the legacy bare-index form as Primary. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>