From 202390e422926e40a88a0d7a3b99b22bb371f71d Mon Sep 17 00:00:00 2001 From: 0HyperCube <78500760+0HyperCube@users.noreply.github.com> Date: Wed, 3 Jan 2024 09:55:40 +0000 Subject: [PATCH] Apply transform before copy to points node (#1540) --- node-graph/gcore/src/vector/vector_nodes.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node-graph/gcore/src/vector/vector_nodes.rs b/node-graph/gcore/src/vector/vector_nodes.rs index 7caa007a..89415993 100644 --- a/node-graph/gcore/src/vector/vector_nodes.rs +++ b/node-graph/gcore/src/vector/vector_nodes.rs @@ -163,15 +163,15 @@ async fn copy_to_points, FI: Future> = Vec::new(); for point in points_list { - let transform = DAffine2::from_translation(point) * instance_center; + let transform = DAffine2::from_translation(points.transform.transform_point2(point)) * instance_center; for mut subpath in instance.subpaths.clone() { - subpath.apply_transform(transform); + subpath.apply_transform(transform * instance.transform); instanced_subpaths.push(subpath); } }