Skip to content

Commit 499d087

Browse files
fixing build
1 parent 05998ad commit 499d087

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,10 @@ fn qr_code(_: impl Ctx, _primary: (), #[default("https://graphite.art")] text: S
205205
if qr_code.get_module(x as i32, y as i32) {
206206
let corner1 = DVec2::new(x as f64, y as f64);
207207
let corner2 = corner1 + DVec2::splat(1.);
208-
vector.append_subpath(subpath::Subpath::new_rect(corner1, corner2), false);
208+
vector.append_subpath(
209+
subpath::Subpath::from_anchors([corner1, DVec2::new(corner2.x, corner1.y), corner2, DVec2::new(corner1.x, corner2.y)], true),
210+
false,
211+
);
209212
}
210213
}
211214
}

0 commit comments

Comments
 (0)