File tree 1 file changed +4
-4
lines changed
editor/src/messages/tool/common_functionality
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1072,17 +1072,17 @@ impl ShapeState {
1072
1072
1073
1073
for point in self . selected_points ( ) {
1074
1074
if let Some ( handles) = point. get_handle_pair ( & vector_data) {
1075
- //handle[0] is selected, handle[1] is other
1075
+ //handle[0] is selected, handle[1] is opposite / mirror handle
1076
1076
handles_to_update. push ( ( layer, handles[ 0 ] . to_manipulator_point ( ) , handles[ 1 ] . to_manipulator_point ( ) ) ) ;
1077
1077
}
1078
1078
}
1079
1079
}
1080
1080
1081
1081
for ( layer, handle_to_deselect, handle_to_select) in handles_to_update {
1082
1082
if let Some ( state) = self . selected_shape_state . get_mut ( & layer) {
1083
- let set = & state. selected_points ;
1084
- // If both selected, keep them selected
1085
- if set . contains ( & handle_to_deselect ) && set . contains ( & handle_to_select ) {
1083
+ let points = & state. selected_points ;
1084
+ let both_selected = points . contains ( & handle_to_deselect ) && points . contains ( & handle_to_select ) ;
1085
+ if both_selected {
1086
1086
continue ;
1087
1087
}
1088
1088
state. deselect_point ( handle_to_deselect) ;
You can’t perform that action at this time.
0 commit comments