Commit Graph
15 Commits
Author SHA1 Message Date
David Mann 9b2cd89b21 Merge #16183 into the merge queue batch
Auto-Blend Stack Images: the bottom layer shows everywhere (#14212)
2026-11-25 17:31:40 +01:00
David Mann ce4f3b87c9 Merge #16689 into the merge queue batch
Direct Selection: consecutive arrow nudges are one "Nudge Path" step (#13204)
2026-11-25 13:28:29 +01:00
David Mann 3bd9c0deb0 Merge #16411 into the merge queue batch
Layer Comps to Files: comment in the name, dashes in PNG names, .tif and .jpg (#13940)
2026-11-25 13:28:24 +01:00
RickiNano baea3f6ef8 Layer Comps to Files: a part that fits keeps its trailing space (#13940)
`clip_bytes` trimmed trailing spaces even when it didn't cut anything,
so a sanitized prefix such as `A ` (from `A .`) lost its space in a
short file name. It now returns a part that fits unchanged and trims
only the end a cut leaves.
2026-11-25 07:28:31 +01:00
RickiNano 3fc42fdab2 Layer Comps to Files: a cut part leaves out the parts after it (#13940)
When a part of the file name was cut, the bytes left over (less than one
character of it) could still hold a later, lower-priority part: a cut
comp name could lose its last character while a one-letter comment
stayed. Now a cut prefix leaves out the name and comment, and a cut
name leaves out the comment.
2026-11-25 07:24:40 +01:00
RickiNano 5bc0153391 Layer Comps to Files: a long comment is shortened, not a failed export (#13940)
The comp comment is appended to the file name, and nothing limited the
length, so a comment of a few sentences gave a name past the 255-byte
file name limit and the save stopped the whole export at that comp.

`comp_file_name` now builds `<prefix>_<index>_<name>[_<comment>].<ext>`
within 255 bytes (which also keeps it within Windows' 255 UTF-16 units).
A name that doesn't fit loses the end of its comment first, the whole
comment with its `_` when none of it fits, then of the comp name, then
of the prefix. The index and extension always stay, and every cut falls
between characters.

The new test exports a comp with a six-sentence comment (with umlauts)
and the comp after it, as PNG and TIFF; without the change the export
fails at the first comp. The names tests now export into a folder per
run, so the PNG tests no longer share one.
2026-11-25 07:16:04 +01:00
RickiNano ea21d77e08 Direct Selection: consecutive arrow nudges are one "Nudge Path" step (#13204)
The arrow-key nudge of the selected anchors joins the app's run of nudges
(nudge_bundle, as the Move tool does): nudges of the same anchors share one
coalesce key, so the engine folds them into one History step, named
"Nudge Path" through path.moveAnchors' stepName. Another anchor selection,
any other edit or a pause starts a new step.
2026-11-24 20:49:56 +01:00
x-labb f5ee04545a fix(engine): Auto-Blend Layers is unavailable with a type layer or smart object selected (#14204)
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.
2026-11-24 20:40:11 +01:00
RickiNano 834f641fd5 Auto-Blend Stack Images: keep the bottom masked under Blend If, a shapeless knockout or an opaque default
Revealing the bottom must leave the composite as the complementary masks drew it. Three more cases broke that:
- Blend If on the top hides top pixels the weights count as covering; the reveal showed the bottom there.
- A bottom whose Advanced Blending acts (a deep knockout with Transparency Shapes Layer off) knocks out
  wherever its mask shows, so a reveal-all mask cleared the layers beneath past the blended area.
- content_bounds leaves out pixels equal to the surface's default, so an opaque default showed past the
  blended area once the mask revealed it.

Each now keeps the old masks, with a regression that fails without the check.
2026-11-24 11:53:23 +01:00
RickiNano 5da64cdb9b Merge remote-tracking branch 'origin/main' into s18-16183
# Conflicts:
#	crates/engine-vector/src/cmd/align_cmds/auto_blend_stack_bottom_mask_tests.rs
2026-11-24 11:53:23 +01:00
RickiNano b77e6333ed Merge remote-tracking branch 'origin/main' into fix/13940-comps-to-files-names 2026-11-24 08:48:57 +01:00
aiongg 4a136a64bb Path delete test: start from an installed session 2026-11-24 04:56:42 +00:00
aionggandDan 32704afb63 Path Selection Delete removes paths, not the layer; Properties eyedropper picks
With Path Selection, Delete removes the selected components of a shape
layer, saved path or vector mask (path.deleteComponents), or the targeted
saved path when nothing is selected, instead of deleting the layer.

The Properties panel Fill and Stroke popovers now hold the screen pick and
feed the sampled colour back, as the options bar does.

Fixes #13269

Co-authored-by: Dan <[email protected]>
2026-11-24 04:56:42 +00:00
aiongg 6d73dcee09 Engine split step 8: the vector crate (install, incomplete-docs list, layer comp recorded step, top wiring, corpus feature, core items vector uses made public, tooling) 2026-11-24 02:41:56 +00:00
aiongg eb982b0c82 Engine split step 8: engine_cut.py split vector (vector modules to crates/engine-vector/src) 2026-11-24 02:41:56 +00:00