From bbdad67c1afbd3ac5e1e8e5b653ec3034bedd9a5 Mon Sep 17 00:00:00 2001 From: FredApps Date: Sat, 21 Nov 2026 11:29:09 +0100 Subject: [PATCH] #8895: enable pressure sizing in the stroke warning test --- crates/engine/src/cmd/brush_cmds/tests.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/engine/src/cmd/brush_cmds/tests.rs b/crates/engine/src/cmd/brush_cmds/tests.rs index 3fb29591adc..c345876e771 100644 --- a/crates/engine/src/cmd/brush_cmds/tests.rs +++ b/crates/engine/src/cmd/brush_cmds/tests.rs @@ -1575,6 +1575,7 @@ fn strokes_that_keep_their_coverage_do_not_warn() { #[test] fn a_light_first_point_is_judged_by_its_own_dab_diameter() { let mut s = session(400, 400); + s.execute("tools.setBrush", json!({"brush": {"pressureSize": true}})).unwrap(); let r = s.execute("paint.stroke", json!({"points": [[100, 200, 0.2], [150, 200, 0.2]], "size": 150, "spacing": 5, "color": "#ff0000"})).unwrap(); assert_eq!(r["pitch"].as_f64(), Some(150.0), "{r}"); let warnings = stroke_warnings(&r);