You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if input.keyboard.key(select_deepest) || tool_data.nested_selection_behavior == NestedSelectionBehavior::Deepest{
923
921
tool_data.select_single_layer = intersection;
@@ -1026,18 +1024,9 @@ impl Fsm for SelectToolFsmState {
1026
1024
1027
1025
let mouse_delta = snap_drag(start, current, tool_data.axis_align, axis, snap_data,&mut tool_data.snap_manager,&tool_data.snap_candidates);
1028
1026
let mouse_delta = match axis {
1029
-
Axis::X => {
1030
-
debug!("The axis is on X!");
1031
-
mouse_delta.project_onto(e0)
1032
-
},
1033
-
Axis::Y => {
1034
-
debug!("The axis is on Y!");
1035
-
mouse_delta.project_onto(e0.perp())
1036
-
},
1037
-
Axis::None => {
1038
-
debug!("The axis is on both X and Y!");
1039
-
mouse_delta
1040
-
},
1027
+
Axis::X => mouse_delta.project_onto(e0)
1028
+
Axis::Y => mouse_delta.project_onto(e0.perp()),
1029
+
Axis::None => mouse_delta,
1041
1030
};
1042
1031
1043
1032
// TODO: Cache the result of `shallowest_unique_layers` to avoid this heavy computation every frame of movement, see https://github.com/GraphiteEditor/Graphite/pull/481
0 commit comments