Skip to content

Commit

Permalink
Fix bezier-edge again..
Browse files Browse the repository at this point in the history
  • Loading branch information
grtlr authored and teh-cmc committed Dec 12, 2024
1 parent 086e10d commit 6559173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/viewer/re_view_graph/src/layout/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ impl ForceLayoutProvider {
let c1_base = source_pos + delta * 0.25;
let c2_base = source_pos + delta * 0.75;

let base_n = Vec2::new(-c1_base.y, c1_base.x).normalized();
let base_n = Vec2::new(-delta.y, delta.x).normalized();

let c1_left = c1_base + base_n * (fan_amount / 2.);
let c2_left = c2_base + base_n * (fan_amount / 2.);
Expand Down

0 comments on commit 6559173

Please sign in to comment.