`docs/ui-parity.md`'s status line conflicted: the branch and main each
prepended a clause at the head of the change list, and the branch also
carried the newer `Last updated` date. The merged line keeps main's
toolbar tool-memory clause (#3569) word for word after our Reset
Transform clause (#11662), with one `Change:` header and the later date.
A row recorded from the Count tool was labelled "Measurement N" like a
selection row. It is now "Count N", as in the reference application,
with the same shared number; selection and ruler rows keep their labels
and every other column is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
count.deleteGroup kept the same index current after deleting the
current group, so with three groups and the second current the third
became current. The first remaining group now becomes current, as the
reference application does. Deleting another group by index still keeps
the current one (#5654), and deleting the last group still leaves none.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Alt-click (Subtract) and Shift+Alt-click (Intersect) with the Magic Wand
took the seed's whole region, wherever the seed was, so a click outside
the selection still cut into it. With Contiguous on, the region now
grows from the seed through selected pixels only: a seed outside the
selection subtracts nothing and intersects to nothing, and a seed
inside gives the same results as before. Contiguous off is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BrushSettings::default() turned Pressure for Size on, so a fresh brush -
and the brush Reset Tool hands back, which is that default plus
Photoshop's 10 % smoothing - reported pressureSize: true from brush.get
and drew the options bar's "Always use pressure for size" button
highlighted, while the reference application leaves both pressure
toggles off after Reset Tool. Neither is on now.
The toggle itself is untouched: it still switches both ways, Shape
Dynamics' Pen Pressure control is unaffected, and path.stroke's Simulate
Pressure still tapers a brush that follows pen pressure. A brush JSON
that omits pressureSize now reads as off, as the reference's default is.
Two engine tests took their expectation from the old default and set
pressureSize explicitly instead: cmd::brush_cmds::tests::stroke_backwards_compatible
and cmd::vector_cmds::tests::stroke_path_simulate_pressure_tapers_both_ends.
The new crates/engine/src/brush_pressure_size_default_tests.rs covers the
default, brush.get on a fresh session, an omitted field, switching the
toggle, and that a pressure ramp with the default brush paints like
pressureSize: false.
Fixes#11809
Review finding on this PR (#11675, discussion_r4499346688): with the warp now cleared as part of
the reset, a smart object whose stack holds a visible filter this build cannot apply took the
Free Transform path's forgiving branch - `refresh_layer` returns false for that stack,
`refresh_text` drops it on the floor, and `restore_unrendered` put the OLD cache back warped by
the relative map. The step recorded a placement at 100 % with no warp whose pixels still showed
the warp.
The step now insists on the guarded refresh the other smart-object edits use:
- `unapplied_filters` is checked before anything changes, so an unsupported Photoshop filter kept
verbatim from a PSD names itself in the error and the document is never touched.
- `refresh_or_fail(doc, id)?` runs at the reset boundary, right after `transform_by_map` and
before the exact map is pinned. It is a cache-warm call in the normal case (same document state
as the render `transform_by_map` just did), and it refuses an unreadable source or a render that
fails outright. Because `Session::edit` runs its closure on a copy and returns early on `Err`,
a refused reset leaves the document, the placement, the warp and the history list exactly as
they were - the fallback pixels are never accepted.
Regression test `reset_transform_refuses_a_stack_it_cannot_re_render` (red before this commit:
the reset returned Ok) asserts the error names the filter, that transform, warp and filter stack
are unchanged, that no history state was added, and that the same object resets normally once the
unsupported filter is off the stack. The four existing reset tests still pass, so the success
path and its warp clearing are unchanged.
No new dependency; photocraft_io's UNSUPPORTED_FILTER was already re-exported by this module.
Stroke Emboss was drawn as an Inner Bevel of the layer, shading the
layer's own edge. It now bevels the outline of the layer with its top
Stroke effect and shades only the stroke, as Photoshop does; without a
stroke it shows nothing. The GPU plan hands a layer with Stroke Emboss
to the CPU compositor, which builds the stroke's band.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Brush, Pencil and Eraser Opacity fields take whole numbers from 1 to
100, as in the reference application (0 and -10 become 1, 150 becomes 100,
33.7 a whole number). The digit keys "00" set the Brush to 100 % instead of
0 %, and tools.setBrush floors opacity at 0.01, so a brush can no longer be
set to paint nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured against the reference application on 2026-11-06 (report in #11675): a smart object
warped with Arc 50, then rotated 20 degrees and scaled to 80 %, came back from Reset Transform
with no warp at all, at its contents' own size, unrotated, centred on the average of its four
corners. So the Warp goes with the transform, and the centre is the corner average rather than
the point the contents' box centre maps to - the same point for an affine placement, and the
quad's centre once Distort or Perspective bent it.
The warp is cleared before the placement is re-rendered, so the step draws the unwarped
contents once. What still follows the placement is the Smart Filter mask and any linked layer or
vector mask, exactly as under Free Transform: how a painted filter mask should compensate for a
cleared warp is not something the measurement covers, and #11171 has its own answer to it.
Smart filters, sources and history are unchanged: still one "Reset Transform" undo step. The
tests now pin the cleared warp (red before this commit), the corner average for a distorted
placement, and that a second reset changes nothing.
Every function this PR adds now has a doc comment, including the test functions in the importer, PDF export and layers_to_files suites. No behaviour change.
In an RGB document the border now snaps to the edges of the visible composite
whichever layer is active; hidden layers add none. Other modes keep following
the active layer's pixels.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>