mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
A newLayer clone copied back the union of every dab's box: one point far off the canvas (e.g. [9e6, 9e6], accepted by the params) made it read a region of petabytes and abort. The command and the stamp preview now copy back and report damage only inside the canvas. With an image on the clipboard (Paste is on by default), OK pastes first and the strokes paint over and sample the paste, but the preview painted the strokes on the unpasted layer and drew the paste on top. The preview now pastes first too (shared paste_onto), repaints when the paste moves, and the overlay is only drawn when no current preview shows the paste. While the paste is dragged the baked preview is hidden so only one copy follows the pointer; a plane drag freezes preview and paste until release. Deleting the last plane now drops the stroke preview. Co-authored-by: Valentin Klein <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>