diff --git a/crates/paint/src/brush_roundness_jitter_tests.rs b/crates/paint/src/brush_roundness_jitter_tests.rs index 234255c8e2c..315de2a8e85 100644 --- a/crates/paint/src/brush_roundness_jitter_tests.rs +++ b/crates/paint/src/brush_roundness_jitter_tests.rs @@ -18,12 +18,7 @@ fn dabs(brush: &BrushSettings) -> Vec { let mut out = Vec::new(); for step in 0..64_u16 { builder.build( - &StepInput { - point: StrokePoint::new(f64::from(step) * 80.0, 40.0, 1.0), - direction: 0.0, - initial_direction: 0.0, - step: u64::from(step), - }, + &StepInput { point: StrokePoint::new(f64::from(step) * 80.0, 40.0, 1.0), direction: 0.0, initial_direction: 0.0, step: u64::from(step) }, &mut out, ); } diff --git a/crates/paint/src/dynamics.rs b/crates/paint/src/dynamics.rs index 5dfe906de9e..64cd14feb45 100644 --- a/crates/paint/src/dynamics.rs +++ b/crates/paint/src/dynamics.rs @@ -660,9 +660,8 @@ impl DabBuilder { angle += control_angle(sd.angle.control, sd.angle.fade_steps, s) + rand_signed(seed, i, stream::ANGLE) * sd.angle.jitter.clamp(0.0, 1.0) * 180.0; // Jitter alone keeps a quarter of the base tip; unmeasured controllers keep their existing range. - roundness = (roundness - * scalar(&sd.roundness, s, r(stream::ROUNDNESS) * if sd.roundness.control == Control::Off { 0.75 } else { 1.0 })) - .clamp(0.01, 1.0); + roundness = (roundness * scalar(&sd.roundness, s, r(stream::ROUNDNESS) * if sd.roundness.control == Control::Off { 0.75 } else { 1.0 })) + .clamp(0.01, 1.0); if sd.flip_x_jitter && r(stream::FLIP_X) < 0.5 { fx = !fx; }