File tree 1 file changed +7
-7
lines changed
editor/src/messages/tool/common_functionality
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1068,15 +1068,15 @@ impl ShapeState {
1068
1068
} ;
1069
1069
1070
1070
for point in self . selected_points ( ) {
1071
- if let Some ( _ ) = point. as_anchor ( ) {
1071
+ if point. as_anchor ( ) . is_some ( ) {
1072
1072
return PointSelectState :: Anchor ;
1073
1073
}
1074
- if let Some ( _ ) = point. get_handle_pair ( & vector_data) {
1074
+ if point. get_handle_pair ( & vector_data) . is_some ( ) {
1075
1075
return PointSelectState :: HandleWithPair ;
1076
1076
}
1077
1077
}
1078
1078
}
1079
- return PointSelectState :: HandleNoPair ;
1079
+ PointSelectState :: HandleNoPair
1080
1080
}
1081
1081
1082
1082
/// Returns true if atleast one handle with pair is selected
@@ -1086,15 +1086,15 @@ impl ShapeState {
1086
1086
continue ;
1087
1087
} ;
1088
1088
for point in self . selected_points ( ) {
1089
- if let Some ( _ ) = point. as_anchor ( ) {
1089
+ if point. as_anchor ( ) . is_some ( ) {
1090
1090
return false ;
1091
1091
}
1092
- if let Some ( _ ) = point. get_handle_pair ( & vector_data) {
1092
+ if point. get_handle_pair ( & vector_data) . is_some ( ) {
1093
1093
return true ;
1094
1094
}
1095
1095
}
1096
1096
}
1097
- return false ;
1097
+ false
1098
1098
}
1099
1099
1100
1100
/// Alternate selected handles to mirrors
@@ -1107,7 +1107,7 @@ impl ShapeState {
1107
1107
} ;
1108
1108
1109
1109
for point in self . selected_points ( ) {
1110
- if let Some ( _ ) = point. as_anchor ( ) {
1110
+ if point. as_anchor ( ) . is_some ( ) {
1111
1111
continue ;
1112
1112
}
1113
1113
if let Some ( handles) = point. get_handle_pair ( & vector_data) {
You can’t perform that action at this time.
0 commit comments