`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.
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.
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.
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.
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.
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.
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]>