Skip to content

Commit ae3523d

Browse files
committed
fix: better names/comment(hopefull)
1 parent a70cae4 commit ae3523d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

editor/src/messages/tool/common_functionality/shape_editor.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1072,17 +1072,17 @@ impl ShapeState {
10721072

10731073
for point in self.selected_points() {
10741074
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
10761076
handles_to_update.push((layer, handles[0].to_manipulator_point(), handles[1].to_manipulator_point()));
10771077
}
10781078
}
10791079
}
10801080

10811081
for (layer, handle_to_deselect, handle_to_select) in handles_to_update {
10821082
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 {
10861086
continue;
10871087
}
10881088
state.deselect_point(handle_to_deselect);

0 commit comments

Comments
 (0)