mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 14:58:05 +08:00
Remap Path tool point sliding to G G (#2913)
* Feat: Point sliding on G G * Code cleanup * Fix gg sliding behaviour * Fix build after merge conflict resolution * Fix slide point and add hints * Fix history in segment insertion * Code review --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
@@ -182,10 +182,10 @@ pub fn bezpath_to_manipulator_groups(bezpath: &BezPath) -> (Vec<ManipulatorGroup
|
||||
ManipulatorGroup::new(point_to_dvec2(point2), Some(point_to_dvec2(point1)), None)
|
||||
}
|
||||
kurbo::PathEl::ClosePath => {
|
||||
if let Some(last_manipulators) = manipulator_groups.pop() {
|
||||
if let Some(first_manipulators) = manipulator_groups.first_mut() {
|
||||
first_manipulators.out_handle = last_manipulators.in_handle;
|
||||
}
|
||||
if let Some(last_manipulators) = manipulator_groups.pop()
|
||||
&& let Some(first_manipulators) = manipulator_groups.first_mut()
|
||||
{
|
||||
first_manipulators.out_handle = last_manipulators.in_handle;
|
||||
}
|
||||
is_closed = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user