Skip to content

Commit

Permalink
Incorrect scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgerhant authored and Keavon committed Oct 14, 2024
1 parent 746f507 commit 2bd8974
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions node-graph/gcore/src/vector/vector_nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ async fn repeat<F: 'n + Send + Copy, I: 'n + GraphicElementRendered + Transform

let mut result = GraphicGroup::EMPTY;

let Some(bounding_box) = instance.bounding_box(first_vector_transform) else {
let Some(bounding_box) = instance.bounding_box(DAffine2::IDENTITY) else {
return result;
};

Expand Down Expand Up @@ -243,12 +243,11 @@ async fn circular_repeat<F: 'n + Send + Copy, I: 'n + GraphicElementRendered + T

let mut result = GraphicGroup::EMPTY;

let Some(bounding_box) = instance.bounding_box(first_vector_transform) else {
let Some(bounding_box) = instance.bounding_box(DAffine2::IDENTITY) else {
return result;
};

let center = (bounding_box[0] + bounding_box[1]) / 2.;

let base_transform = DVec2::new(0., radius) - center;

for i in 0..instances {
Expand Down

0 comments on commit 2bd8974

Please sign in to comment.