Skip to content

Commit f94431e

Browse files
author
indierusty
committed
fix segment index when t value is 1.0
1 parent b796879 commit f94431e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node-graph/gcore/src/vector/algorithms/bezpath_algorithms.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fn global_euclidean_to_local_euclidean(bezpath: &kurbo::BezPath, global_t: f64,
7171
}
7272
accumulator += length_ratio;
7373
}
74-
(bezpath.segments().count() - 2, 1.)
74+
(bezpath.segments().count() - 1, 1.)
7575
}
7676

7777
enum BezPathTValue {

0 commit comments

Comments
 (0)