mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-21 19:48:11 +08:00
Fix Pen and Freehand tool path extension (#1809)
Improve path tool extend
This commit is contained in:
@@ -5,7 +5,7 @@ use graphene_std::vector::PointId;
|
||||
|
||||
use glam::DVec2;
|
||||
|
||||
/// Determines if a path should be extended. Returns the path and if it is extending from the start, if applicable.
|
||||
/// Determines if a path should be extended. Goal in viewport space. Returns the path and if it is extending from the start, if applicable.
|
||||
pub fn should_extend(document: &DocumentMessageHandler, goal: DVec2, tolerance: f64) -> Option<(LayerNodeIdentifier, PointId, DVec2)> {
|
||||
let mut best = None;
|
||||
let mut best_distance_squared = tolerance * tolerance;
|
||||
|
||||
Reference in New Issue
Block a user