Skip to content

Commit 5a944b5

Browse files
committed
Fix order change in Jitter Points causing different results from earlier
1 parent de8e9de commit 5a944b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

node-graph/nodes/vector/src/vector_nodes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,9 +1947,9 @@ async fn jitter_points(
19471947
};
19481948

19491949
let offset = if let Some(normal) = normal {
1950-
(rng.random::<f64>() * 2. - 1.) * normal
1950+
normal * (rng.random::<f64>() * 2. - 1.)
19511951
} else {
1952-
rng.random::<f64>() * DVec2::from_angle(rng.random::<f64>() * TAU)
1952+
DVec2::from_angle(rng.random::<f64>() * TAU) * rng.random::<f64>()
19531953
};
19541954

19551955
inverse_linear * (offset * amount)

0 commit comments

Comments
 (0)