The desktop treats a masked layer's mask as the target in Composite when
every colour channel is hidden and no alpha channel is shown; the engine
helper now does too, and ignores a shown filter mask as the desktop does.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With a pixel layer's or a group's layer mask targeted, or an adjustment
layer with its mask active, both items stayed enabled and made a brush
or pattern from the composite. The reference greys them there.
A shared check, pattern_cmds::layer_mask_targeted, now gates
edit.definePattern and brush.defineFromSelection; Define Brush Preset
passes on the brush command's reason.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every preference edit ran scratch::configure, which re-measures memory,
probes the scratch folder and restarts a paused disk's backoff (about
17 ms on a machine with a full scratch disk). A dialog with a remembered
place edits the preferences on nearly every frame of a drag, so the drag
ran at a third of its frame rate. apply_prefs now keeps the settings it
configured and configures again only when they change.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every storytold/craft-libs rev moves from 873b8fd2 to 18404f34, the merge
commit of storytold/craft-libs#4596 (Param::option_picks_color), which the
Fill dialog's Color... entry needs (#17470). The 109 commits in between
need no PhotoCraft code change.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With a group active and a smart object, type or shape layer selected
with it, the exception for those unmeasured selections returned before
the group check, so the group's layers were still warped. The group
check now runs first; the exception still applies when the active layer
is not a group.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
edit.transform.warp was enabled by has_layer alone, so over automation it
warped the active layer of a several-layer selection, a linked layer
without its partner, and the children of a group, each as a "Warp" step.
The menu refuses all of these.
The command now uses one_warp_target, built on the same engine helpers
the menu rule reads (selection_targets, box_targets). It refuses more
than one transform target, a layer that linked layers move with, and a
group that is not an artboard.
Kept as before (not measured): a linked partner that is hidden or
locked, and a smart object, type or shape layer among several selected
layers.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
`hidden_target::refusal` in `crates/engine-core/src/hidden_target.rs` checked only the active layer for `layer.translate`, refusing Move drags, Alt+drags, and arrow nudges with "Could not complete your request because the target layer is hidden." whenever a hidden layer happened to be active in a multi-layer selection.
Allow `layer.translate` when no explicit `layer` parameter is given and two or more layers are selected, keeping the refusal for a single hidden layer selected alone and for calls that explicitly name a hidden layer.
Co-authored-by: Cursor <[email protected]>
`can_group_from_layers` in `crates/engine-core/src/cmd/layer_multi_cmds/structure.rs` only refused the Background layer, leaving `layer.new.groupFromLayers` enabled when an artboard was among the selected layers so the dialog opened and then failed on OK with "artboards can't go into a group".
Refuse in `can_group_from_layers` with "artboards can't go into a group" whenever any selected layer is an artboard, leaving `group_layers_with` and `layer.groupLayers` unchanged.
Co-authored-by: Cursor <[email protected]>