apply_values copied the bar's rounded Opacity, Flow, Smoothing and Mixer
Wet/Load/Mix/Flow onto the brush on every edit, so toggling an unrelated
control rounded an untouched f32 such as 0.12345678 to 0.123457. Each
fraction is now written only when it differs from the bar's value before
the edit.
Apply the storytold/cadcraft#3603 profile_root.rs reopen fix to PhotoCraft:
- Enforce directory-only check in private_subdirectory for existing non-directory entries
- Define PROFILE_FOLDERS for PhotoCraft's profile subfolders (Recovery, AgentFiles, Presets, logs)
- Distinguish regular files from folder-only entries in entries_stay_inside and validate regular files with private_regular_file (nlink == 1 on Unix, non-reparse/non-directory single-link check via winsafe on Windows)
- Add nightly_profile_reopens_after_saving_settings_and_session_state regression test
With Snap off the Move tool drew no smart guides at all, because the lines
only came out of snapping. Now, with Snap off and Smart Guides on, an edge
or centre of the moved box that lines up exactly (at the whole-pixel offset
the drag commits) with another layer's draws its line, with no pull. Smart
Guides off or the suspend key held draws nothing; Snap on is unchanged.
The brush keeps Opacity, Flow, Smoothing and the Mixer Brush's Wet, Load,
Mix and Flow as f32 fractions. Read back as f64, 0.51 is 0.50999999...,
so the bar's whole-percent field saw 50.999999 %, a value off its step
grid, and Up went to the next multiple, 51, again: only the first press
moved the value. The bar now reads those fractions rounded to six
decimals, so a stepped value comes back on the grid.
The Drop Shadow now takes the same third-of-a-pixel source offset the
Inner Shadow takes since #14934, through the same aa_shift gate (Gaussian
contour, no dilating Spread, a blur wider than the identity), on the CPU
(shadow_map) and the GPU map program (B::shadow). On the issue's document
the edges land within 2 levels of the measured profiles; the flag off
keeps every map bit-for-bit.
main moved the craft-libs pin twice (35b60e9341 to 7d9544226d, 86931c85e6 to 3eb5b528), and craft-libs 4a52a22e7 changed a TransformBox corner drag: a corner keeps the grab offset and moves by the cursor's delta, while a side still follows the cursor. These pins pressed 3 px outside a handle and expected the handle to land on the cursor, so every scale landed 3 px off.
The drags now move the cursor so the box travels the intended 30 px (corner tests) or 10 px (the eight-handle sweep); the press still lands 3 px outside, and the exact-bound assertions and their 1 px tolerance are unchanged.
The greying set enabled_when to a condition that never holds. With main's
craft-libs pin that field is private, so the dialog no longer compiled once
main was merged in; Param::disabled() says the same thing.
craft-libs af4e8181 gives ShapeGeometry::Triangle a corner_radius
(storytold/craft-libs e4c1dc59). The drag's snap keeps it and shape.create
gets cornerRadius when it is above 0; a sharp triangle sends what it did.
A timed repaint from the control server's thread no longer takes the UI's
pass state, so a pass can't start on an empty one and lose every command
set (tool rail icons became "...").
The sampling guard named the active document's main canvas while the queueing
route drives the canvas this request picked (the top dialog's own, else the
main one). Read the gesture state on that same canvas: ToolHost::in_gesture
(ctx, canvas) in place of canvas::tools::in_gesture(app). With a Color Picker
as the top dialog its declared canvas is the one the events would drive, so
the two reads answer the same today and every existing guard stays green;
the guard now states what it means.
A click with the Count tool stored the raw pointer position (99.3, 99.7)
and a drag dropped the marker at the raw release position. A plain click
on a marker changed nothing, because moves of 0.5 px or less were
dropped. The reference puts a new or moved marker on the centre of the
pixel under the pointer (99.5, 99.5), also on the pasteboard, and a
click on a marker re-centres it on the clicked pixel as one history
state.
`CountPass::press` now adds at the pixel centre, and remembers the
marker's own position instead of the press point. `release` moves the
marker to the release pixel's centre when that differs from where the
marker is, so a click on a marker is a move and a click in the pixel it
already sits on adds no history state. `count.add` and `count.move` are
untouched: called with coordinates, they keep them as given.
New tests in `crates/ui-egui/src/tools/count_pixel_centre_tests.rs`
cover the click (canvas and pasteboard), the drag and the re-centring
click. Two assertions in `analysis/tests.rs` that pinned raw positions
now expect pixel centres.
The Background exemption in menu_kind covered every lock: `background ||` skipped the
lock check altogether, so a Background that also carries the `all` or `artboard` lock
still routed its thumbnail to the short menu. The issue exempts only the transparency
and position locks a Background carries by itself - those are why its row stands in the
measured table - and lists a locked layer as not measured, keeping today's menu.
menu_kind now asks, for a Background, whether a lock beyond its own two is set, and
keeps the full lock check for every other layer. Locking the pixels stays out of the
new test: `Locks::set` clears the transparency lock when the pixels go on, and the
layer then stops being a Background at all, so the ordinary locked rule already covers it.