Files
photocraft/crates
hnoerenberg 0be698eb85 fix(retouch): a Remove stroke on a smart object edits a new layer
The Remove tool is a pixel tool, so a press on a Smart Object layer opened
the rasterize prompt and nothing was removed until the layer was rasterized.
The reference application instead keeps the smart object intact: the fill
goes to a normal pixel layer named "Remove tool edits" directly above it,
even with Create new layer off, and the first such removal says so.

intercept lets the Remove tool's Smart Object press through to the tool;
the type, shape and fill prompts are unchanged. paint.remove treats a
Smart Object target as the new-layer case whatever "newLayer" says: the
hole is filled from the smart object's rendered pixels, read through
read_target_surface after the same pixel-lock check the painted case
makes, and the fill lands above it. Its precondition now admits a Smart
Object with pixels to sample. The options bar sends newLayer for that
target as well, so the params say what will happen, and after such a
removal the app posts the notice with its dismiss key, so the card offers
Do not show again and later removals stay quiet.

A second removal of the same smart object, Sample All Layers over one, and
the notice after it was closed are not measured in the reference: they
keep the new-layer path's behaviour, pinned by tests.

Fixes #12555
2026-11-25 22:21:30 +01:00
..
2026-11-21 16:12:46 +00:00
2026-11-21 16:12:46 +00:00
2026-11-21 16:12:46 +00:00