Skip to content

Commit 634fe1f

Browse files
committed
fix point offsetting.
1 parent b0acb47 commit 634fe1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

node-graph/gcore/src/vector/algorithms/bezpath_algorithms.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ pub fn poisson_disk_points(bezpath_index: usize, bezpaths: &[(BezPath, Rect)], s
229229
};
230230

231231
let square_edges_intersect_shape_checker = |position: DVec2, size: f64| {
232+
let position = position + offset;
232233
let rect = Rect::new(position.x, position.y, position.x + size, position.y + size);
233234
bezpath_rectangle_intersections_exist(&this_bezpath, rect)
234235
};

0 commit comments

Comments
 (0)