Skip to content

Commit 521ad51

Browse files
committed
fix: compare against DVec2::ZERO
1 parent 3a3f02a commit 521ad51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ async fn solidify_stroke(_: impl Ctx, content: Table<Vector>) -> Table<Vector> {
12461246
let new_size = new_bounds[1] - new_bounds[0];
12471247

12481248
// Only remap if new_size is non-zero to avoid division by zero
1249-
if new_size != 0. {
1249+
if new_size != DVec2::ZERO {
12501250
// Transform: old_bounds normalized → world → new_bounds normalized
12511251
// point_world = old_bounds[0] + point_normalized * old_size
12521252
// point_new_normalized = (point_world - new_bounds[0]) / new_size

0 commit comments

Comments
 (0)