mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Adding, moving or deleting layers never touched Layer::clipped, so a new layer above a clipping base split its group and became the base of the layers clipped above it, and moving or deleting a base left its clipped layers clipping to whatever ended up below them. The new clip_group module applies Photoshop's rules, measured on #2203: a layer added or moved joins the clip group it lands in; a clipped layer moved stays clipped while it still sits on a clip group; the layers clipped to a base that moves away or is deleted are released; and a clipped run left with nothing below it is released. They are applied by layer.new.layer (new clipToPrevious param, Photoshop's Use Previous Layer to Create Clipping Mask), layer.arrange.*, layer.moveTo (Layers panel drags, batches and ⌥-drag copies) and layer.delete. Co-authored-by: Claude Opus 5.5 <[email protected]>