mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-21 02:38:12 +08:00
Double click to toggle sharpness of an anchor's handles with the Path tool (#815)
* Double click to flip sharpness of anchor's handles
* Fix bad length
* Convert mirror distance to toggle
* Revert "Convert mirror distance to toggle"
This reverts commit 76b5650022.
* Fix mirror_distance_between_handles being inverted
This commit is contained in:
committed by
Keavon Chambers
parent
7f9c59dd99
commit
0553cc5100
@@ -96,8 +96,7 @@ impl ManipulatorGroup {
|
||||
/// Move the selected points by the provided transform.
|
||||
pub fn move_selected_points(&mut self, delta: DVec2) {
|
||||
let mirror_angle = self.editor_state.mirror_angle_between_handles;
|
||||
// Invert distance since we want it to start disabled
|
||||
let mirror_distance = !self.editor_state.mirror_distance_between_handles;
|
||||
let mirror_distance = self.editor_state.mirror_distance_between_handles;
|
||||
|
||||
// Move the point absolutely or relatively depending on if the point is under the cursor (the last selected point)
|
||||
let move_point = |point: &mut ManipulatorPoint, delta: DVec2| {
|
||||
@@ -299,7 +298,7 @@ impl Default for ManipulatorGroupEditorState {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
mirror_angle_between_handles: true,
|
||||
mirror_distance_between_handles: true,
|
||||
mirror_distance_between_handles: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user