File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
editor/src/messages/tool/common_functionality Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1068,15 +1068,15 @@ impl ShapeState {
10681068 } ;
10691069
10701070 for point in self . selected_points ( ) {
1071- if let Some ( _ ) = point. as_anchor ( ) {
1071+ if point. as_anchor ( ) . is_some ( ) {
10721072 return PointSelectState :: Anchor ;
10731073 }
1074- if let Some ( _ ) = point. get_handle_pair ( & vector_data) {
1074+ if point. get_handle_pair ( & vector_data) . is_some ( ) {
10751075 return PointSelectState :: HandleWithPair ;
10761076 }
10771077 }
10781078 }
1079- return PointSelectState :: HandleNoPair ;
1079+ PointSelectState :: HandleNoPair
10801080 }
10811081
10821082 /// Returns true if atleast one handle with pair is selected
@@ -1086,15 +1086,15 @@ impl ShapeState {
10861086 continue ;
10871087 } ;
10881088 for point in self . selected_points ( ) {
1089- if let Some ( _ ) = point. as_anchor ( ) {
1089+ if point. as_anchor ( ) . is_some ( ) {
10901090 return false ;
10911091 }
1092- if let Some ( _ ) = point. get_handle_pair ( & vector_data) {
1092+ if point. get_handle_pair ( & vector_data) . is_some ( ) {
10931093 return true ;
10941094 }
10951095 }
10961096 }
1097- return false ;
1097+ false
10981098 }
10991099
11001100 /// Alternate selected handles to mirrors
@@ -1107,7 +1107,7 @@ impl ShapeState {
11071107 } ;
11081108
11091109 for point in self . selected_points ( ) {
1110- if let Some ( _ ) = point. as_anchor ( ) {
1110+ if point. as_anchor ( ) . is_some ( ) {
11111111 continue ;
11121112 }
11131113 if let Some ( handles) = point. get_handle_pair ( & vector_data) {
You can’t perform that action at this time.
0 commit comments