From 38f28d231b06a13ec7b7f94c71b2df7f9b0c426b Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sat, 28 Nov 2026 11:23:33 -0800 Subject: [PATCH] Paint: the early target read names the case it still covers item_target now reads `target` with `ids` or `id` too, so the comment above the early read in apply_paint_opacity names only the case it still covers: selected characters take the paint before item_target runs. --- crates/engine/src/cmd/paint.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/engine/src/cmd/paint.rs b/crates/engine/src/cmd/paint.rs index c3e64db4d0..b8136e8cf5 100644 --- a/crates/engine/src/cmd/paint.rs +++ b/crates/engine/src/cmd/paint.rs @@ -945,8 +945,8 @@ fn apply_paint_opacity(s: &mut Session, p: &Value, paint: Option, opacity let cmd = if fill { "paint.setFill" } else { "paint.setStroke" }; let for_tool = tool_color_params(s, p, cmd, !fill)?; let p = for_tool.as_ref().unwrap_or(p); - // A bad `target` or `aligned` is refused for every kind of target: `item_target` reads no - // `target` once `id` or `ids` names an object, and selected characters read neither. + // A bad `target` or `aligned` is refused for every kind of target: selected characters take + // the paint before `item_target` reads either. super::appearance::aligned(p, cmd)?; super::appearance::targets_contents(p)?; let focus = switch_or(p, "focus", true, cmd)?;