Creates two equal documents through the hosted dialog and checks that the
engine's Recent list, the list after a restart and the list handed to the
dialog keep both, newest first.
Since #15449 File › New is the shared NewDocumentDialog, so the old
app-local Recent heading, grid and tests are dropped in favour of main's
dialog code; that part now goes through storytold/craft-libs#2261.
Kept: document.recent.add and load_recent keep equal settings as
separate entries, now in crates/engine-core.
Auto-Blend collected only the selected pixel layers, so with a type layer or a smart object in
the selection it blended the pixel layers and ignored the rest. The reference application
refuses: the command is not available and no history state is added.
Gives Auto-Blend its own enabled check (a type layer or smart object among the selected layers
makes it unavailable) and the same guard at the start of the run. Auto-Align keeps its check.
- `sensor_clipped` and the rebuild's clip mask read the measured sample
before the DNG gain map: a gain above one no longer makes an unclipped
sample count as clipped, and a gain below one no longer hides a sample
the sensor clipped. The rebuild applies the gain map after the mask,
before white balance; the clamped path is unchanged.
- The worker-budget test runs only where `with_threads` can size a pool
(not wasm32).
- New test: a sensor-clipped green disc under a 0.8 gain map is rebuilt
neutral (fails without the fix: [28740, 27176, 29334]).
Part of storytold/craft-libs#778
- The rebuild's memory admission counts the AHD tile scratch of every
worker the whole-frame demosaic runs, not one; a frame that no longer
fits keeps the clip-after-balance fallback and its warning.
- `Cfa::is_bayer` requires an even period on both axes: a 3x2 RGR/GBG
looked Bayer over two columns, and the rebuild then applied the green
gain to a red sample at x = 3.
- The rebuild's white is the balanced camera RGB the active colour model
renders neutral (a camera look may tint [1, 1, 1]); models that already
render [1, 1, 1] neutral keep it exactly, so existing output is unchanged.
- Tests: the odd-strip AHD fixture stays below the sensor clip and says
so; both clipped-disc tests require the disc brighter than its surround;
new tests for the worker budget, the tinting look and the 3x2 CFA each
fail without their fix.
Part of storytold/craft-libs#778
A loose rectangle around a person on a backdrop lit brighter towards the
middle selected a large straight-edged patch of the backdrop. Only the ring
outside the rectangle seeds the background model, so each pass gives up just
the next brightness band of backdrop, and the fixed cap of 8 passes stopped
half way. Raise the cap to 30; cuts that settle earlier still stop at the
existing change check, so the usual case costs the same.
Two regression tests on a synthetic lit-backdrop figure, at step 1 and at
step 2 with the band re-cut: 21041 and 81534 backdrop pixels at 8 passes,
0 and 8 at 30.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main's #13326 tests keep the Star tool without the checkbox (the reference
application has no Star tool; its stars are the Polygon tool's). Keep that,
and the comments and docs that name the Polygon drag.
Co-Authored-By: superplay2021 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
While the active document floats, the main canvas shows a docked one. A
file dropped on that canvas was placed into the floating document, at
coordinates from the floating window's view. The drop now activates the
document the canvas shows, as a press does, then places into it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With Align Edges on by default the stroked layer renders on 20..81 and
View > Snap To pulls the y = 80 press onto that edge; the test now makes the
layer without Align Edges.
Co-Authored-By: superplay2021 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The PR snapped shapes with a per-edge heuristic (pixel_align.rs, dash-cap tie
rules, a PSD coordinate-frame field threaded through engine, format and caches),
defaulted the option to off, and renamed the existing Rectangle/Triangle
"Align Edges" checkbox to "Snap Bounding Box" next to a second checkbox.
The reference application fits the whole shape at render time: the bounds of
what it paints (fill, or the stroke's outer edge) get a whole-pixel left/top
(a half rounds up) and a whole width/height, and the path is translated and
scaled into that box. Fill and stroke take one transform; curves stay
antialiased; inner edges of several subpaths are not snapped.
- photocraft_vector::align_edges implements that rule; CompiledShape applies it,
so caches, the compositor, previews and extents agree; the fill/stroke split
under layer effects starts from the whole shape's transform.
- Removed pixel_align.rs, the rasterizer helpers it needed, the document-space
drag preview and psd_coordinate_frame (rounding the bounds absorbs the PSD
quantization it was for).
- One Align Edges checkbox (ToolOptions::align_edges, stored and scripted as
useAlignedRendering, older align_edges still read) on every shape tool and the
Pen, on by default and after Reset Tool; it snaps the drag and sets the layer.
- PSD sn2P: written as 1 when on and left out when off, as the reference saves it.
- Dropped the dead path.set param, moved the control-protocol paragraph,
rewrote docs/pixel-aligned-strokes.md, reverted the unrelated raw, font,
Cargo and test-harness changes.
- Tests reproduce the measured cases (rectangles at .25/.4/.5/.6/.75, ellipse
extremes and curve symmetry, 1/2/3 px strokes, rotated rect, Pen triangle,
two subpaths, toggle off, stored path unchanged, one checkbox, Reset Tool).
Co-Authored-By: superplay2021 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>