From f713e8290c5a0e6fc5b3cb9da509b8fae5e3bc04 Mon Sep 17 00:00:00 2001 From: MotherBoardMage Date: Sun, 25 Jan 2026 20:57:45 +0000 Subject: [PATCH] fix: solidify_stroke node now applies transformations before calculating the stroke --- node-graph/nodes/vector/src/vector_nodes.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/node-graph/nodes/vector/src/vector_nodes.rs b/node-graph/nodes/vector/src/vector_nodes.rs index b68067d789..76415690e9 100644 --- a/node-graph/nodes/vector/src/vector_nodes.rs +++ b/node-graph/nodes/vector/src/vector_nodes.rs @@ -1154,8 +1154,12 @@ async fn solidify_stroke(_: impl Ctx, content: Table) -> Table { // 0.25 is balanced between performace and accuracy of the curve. const STROKE_TOLERANCE: f64 = 0.25; - for path in bezpaths { - let solidified = kurbo::stroke(path, &stroke_style, &stroke_options, STROKE_TOLERANCE); + for mut path in bezpaths { + path.apply_affine(Affine::new(stroke.transform.to_cols_array())); + + let mut solidified = kurbo::stroke(path, &stroke_style, &stroke_options, STROKE_TOLERANCE); + solidified.apply_affine(Affine::new(stroke.transform.inverse().to_cols_array())); + result.append_bezpath(solidified); }