mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
* fix(clipboard): Copy takes every selected layer, Paste recreates them (#2478) With several layers selected and no pixel selection, Edit > Copy only copied the active layer's pixels, so Paste made one layer. Photoshop copies all selected layers and pastes them back as layers. Copy now puts the selected layers (those no selected group already carries, bottom-to-top) on the session clipboard as whole layers, which Paste already knew how to recreate (paste_layers). The OS clipboard still gets the merged pixels. A pixel selection keeps the old behaviour (the active layer's selected pixels), and the Background in the set pastes as an ordinary, unlocked layer, as Duplicate Layer makes it. Tests: several layers round-trip in one undo step, a pixel selection still copies one layer, and the Background case. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * test(clipboard): several copied layers paste into another document (#2478) Copy two layers in one document, paste them into a 16-bit and a 32-bit document: both arrive in order, converted to the target depth with their own pixels, as one undo step, and the source document is untouched. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>