mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-12-23 10:11:54 +00:00
Fix a regression with duplicating or pasting vector geometry in the Path tool (#3142)
* fix path tool duplication * fix copy and paste --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
c384175910
commit
84470b6b6d
1 changed files with 2 additions and 2 deletions
|
|
@ -2789,7 +2789,7 @@ impl Fsm for PathToolFsmState {
|
|||
segments_map.insert(segment_id, new_segment_id);
|
||||
|
||||
let points = pathseg_points(bezier);
|
||||
let handles = [points.p1, points.p2];
|
||||
let handles = [points.p1.map(|handle| handle - points.p0), points.p2.map(|handle| handle - points.p3)];
|
||||
|
||||
let points = [points_map[&start], points_map[&end]];
|
||||
let modification_type = VectorModificationType::InsertSegment { id: new_segment_id, points, handles };
|
||||
|
|
@ -2895,7 +2895,7 @@ impl Fsm for PathToolFsmState {
|
|||
segments_map.insert(segment_id, new_id);
|
||||
|
||||
let points = pathseg_points(bezier);
|
||||
let handles = [points.p1, points.p2];
|
||||
let handles = [points.p1.map(|handle| handle - points.p0), points.p2.map(|handle| handle - points.p3)];
|
||||
|
||||
let points = [points_map[&start], points_map[&end]];
|
||||
let modification_type = VectorModificationType::InsertSegment { id: new_id, points, handles };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue