mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-21 07:18:11 +08:00
Bezier-rs: Add lookup table function for subpath and make it support euclidean parameterization (#1082)
* Add euclidean option for lut * Add lut for subpath * Fix rust formatting * Fixed breakages caused by UI updates * Code cleanup * Make ProjectionOptions optional --------- Co-authored-by: Rob Nadal <robnadal44@gmail.com> Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Rob Nadal
Keavon Chambers
parent
508726d73f
commit
f49e62a51c
@@ -375,7 +375,7 @@ impl ShapeState {
|
||||
|
||||
for subpath in &vector_data.subpaths {
|
||||
for (manipulator_index, bezier) in subpath.iter().enumerate() {
|
||||
let t = bezier.project(layer_pos, projection_options);
|
||||
let t = bezier.project(layer_pos, Some(projection_options));
|
||||
let layerspace = bezier.evaluate(TValue::Parametric(t));
|
||||
|
||||
let screenspace = transform.transform_point2(layerspace);
|
||||
|
||||
Reference in New Issue
Block a user