mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
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.
This commit is contained in:
1 parent
55e8083aff
commit
38f28d231b
1 file changed
+2
-2
@@ -945,8 +945,8 @@ fn apply_paint_opacity(s: &mut Session, p: &Value, paint: Option<Paint>, 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)?;
|
||||
|
||||
Reference in new issue
Block a user