From e242ce26a0ba5e3c1e188956a5e670e0088082fd Mon Sep 17 00:00:00 2001 From: 0HyperCube <78500760+0HyperCube@users.noreply.github.com> Date: Sun, 14 Jan 2024 00:23:13 +0000 Subject: [PATCH] Fix circular repeat node without bounding box (#1571) --- node-graph/gcore/src/vector/vector_nodes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-graph/gcore/src/vector/vector_nodes.rs b/node-graph/gcore/src/vector/vector_nodes.rs index 4a2a95b8..06a1ae7f 100644 --- a/node-graph/gcore/src/vector/vector_nodes.rs +++ b/node-graph/gcore/src/vector/vector_nodes.rs @@ -114,7 +114,7 @@ pub struct CircularRepeatNode { fn circular_repeat_vector_data(mut vector_data: VectorData, angle_offset: f32, radius: f32, count: u32) -> VectorData { let mut new_subpaths: Vec> = Vec::with_capacity(vector_data.subpaths.len() * count as usize); - let bounding_box = vector_data.bounding_box().unwrap(); + let Some(bounding_box) = vector_data.bounding_box() else { return vector_data }; let center = (bounding_box[0] + bounding_box[1]) / 2.; let base_transform = DVec2::new(0., radius as f64) - center;