From 06038df08cba93c4db1ea23500085147e3cf57ec Mon Sep 17 00:00:00 2001 From: yoriswind Date: Sat, 28 Nov 2026 08:44:21 -0800 Subject: [PATCH] Clarify the flat-tip preservation control --- crates/paint/src/brush_roundness_jitter_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/paint/src/brush_roundness_jitter_tests.rs b/crates/paint/src/brush_roundness_jitter_tests.rs index 315de2a8e85..c326665b2e0 100644 --- a/crates/paint/src/brush_roundness_jitter_tests.rs +++ b/crates/paint/src/brush_roundness_jitter_tests.rs @@ -35,7 +35,7 @@ fn full_roundness_jitter_keeps_a_quarter_of_the_base_tip() { assert!(round.iter().any(|d| d.roundness > 0.9), "the range still reaches nearly the full tip"); assert!(round.iter().all(|d| d.radius * 2.0 * d.roundness >= brush.size * 0.25)); - // The measured floor is relative to the tip: a flat base must not become rounder than it was. + // Keep the bound relative to the base so jitter never makes a flat tip rounder. let flat = BrushSettings { roundness: 0.2, ..brush }; let flat_dabs = dabs(&flat); assert!(flat_dabs.iter().all(|d| d.roundness >= flat.roundness * 0.25 && d.roundness <= flat.roundness));