mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-25 20:14:42 +01:00
* Masks: target a new layer mask and keep separate colour pairs for mask and pixels (#2166) Photoshop keeps one foreground/background pair for layer masks and one for layer pixels and swaps them when the edit target changes; adding a mask targets it, with white/black. PhotoCraft never touched the colours when a mask was targeted, and adding a mask left the pixels targeted. - engine: ToolState::target_mask swaps in the other target's pair (mask pair starts at white/black, colours picked on either side are kept). - ui-egui: sync_mask_targets applies the effective target (mask targeted, active layer has a mask, composite channel, no Quick Mask) after every command, every frame and every control request; the Layer Mask add commands target the new mask. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * Fix merge: close mask colour-pair test before the deletion tests --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>