mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
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