M3: a bound colour variable's alpha applies once, not squared (#802) (#804)

Fixes #802.

Fixes #802.
This commit is contained in:
BFlat
2026-10-18 18:50:19 +07:00
committed by GitHub
parent 86e91d0b71
commit 018b8166b2
10 changed files with 247 additions and 12 deletions
+1 -1
View File
@@ -256,7 +256,7 @@ fn stroke_color(n: &Node) -> Option<Color> {
if !n.has_visible_stroke() {
return None;
}
n.strokes.iter().filter(|p| p.visible).find_map(|p| p.solid_color().map(|c| c.with_alpha(c.a * p.opacity)))
n.strokes.iter().filter(|p| p.visible).find_map(|p| p.solid_color())
}
fn drop_shadow(n: &Node) -> Option<&Shadow> {