mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-30 17:05:35 -05:00
Follow-up to the live ghost-color fix, addressing review findings: with the render loop restamping ghost colors every frame, the bake-time resolution in calc_imex_ghosts was dead code (its RGB was displayed for zero frames), and the pem + head-filament-map entries in the ghost cache key had become color-only inputs that forced a full mesh re-bake — including a visible hitch on every ghost-picker selection — for what is now a pure recolor. - calc_imex_ghosts bakes an alpha-only placeholder; IMEX_GHOST_ALPHA is hoisted to file scope as the single opacity authority (no more reading alpha back out of the field the restamp overwrites). - build_imex_ghost_cache_key drops pem and the head-filament map; the forced invalidations in set/reset_imex_head_filament_map go with them. Picker selections now recolor live with no rebuild. - The restamp moves into PartPlate::update_imex_ghost_colors(), beside the transform refresh, so PartPlate owns its volumes' colors and the canvas calls one hook. Plate-level inputs (pem, override map) are hoisted once per frame via a new get_imex_head_filament_color overload that the single-head form delegates to, keeping tooltip parity by construction. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>