Files
photocraft/crates/engine
248972cfa3 Integration: clip VP clone copy-back to the canvas, paste in the stamp preview (#3281)
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]>
2026-10-25 14:52:51 +01:00
..