mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Add Path tool feature for angle locking upon pressing Ctrl while dragging handle over anchor (#2612)
* almost_fixed * fix need to refactor * fixed issed need to refactor * refactor-done fixed issue * move function to common_functionality --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
@@ -561,6 +561,13 @@ impl ManipulatorPointId {
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_segment(self) -> Option<SegmentId> {
|
||||
match self {
|
||||
ManipulatorPointId::PrimaryHandle(segment) | ManipulatorPointId::EndHandle(segment) => Some(segment),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// The type of handle found on a bézier curve.
|
||||
|
||||
Reference in New Issue
Block a user