mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-12-23 10:11:54 +00:00
Disabling colinear state when both the handles are selected and moved (#2120)
* disable collinear state * Add comment --------- Co-authored-by: hypercube <0hypercube@gmail.com>
This commit is contained in:
parent
2cf33e45bd
commit
00629571f2
1 changed files with 4 additions and 0 deletions
|
|
@ -662,6 +662,10 @@ impl ShapeState {
|
|||
|
||||
let Some(other) = vector_data.other_colinear_handle(handle) else { continue };
|
||||
if state.is_selected(other.to_manipulator_point()) {
|
||||
// If two colinear handles are being dragged at the same time but not the anchor, it is necessary to break the colinear state.
|
||||
let handles = [handle, other];
|
||||
let modification_type = VectorModificationType::SetG1Continuous { handles, enabled: false };
|
||||
responses.add(GraphOperationMessage::Vector { layer, modification_type });
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue