Skip to content

Commit a2f96b1

Browse files
committed
flip-smooth-sharp
1 parent be3d48f commit a2f96b1

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
@@ -1384,13 +1384,13 @@ impl ShapeState {
13841384

13851385
let (id, anchor) = result?;
13861386
let handles = vector_data.all_connected(id);
1387-
let mut positions = handles
1387+
let positions = handles
13881388
.filter_map(|handle| handle.to_manipulator_point().get_position(&vector_data))
1389-
.filter(|&handle| !anchor.abs_diff_eq(handle, 1e-5));
1389+
.filter(|&handle| anchor.abs_diff_eq(handle, 1e-5))
1390+
.count();
13901391

13911392
// Check by comparing the handle positions to the anchor if this manipulator group is a point
1392-
let already_sharp = positions.next().is_none();
1393-
if already_sharp {
1393+
if positions != 0 {
13941394
self.convert_manipulator_handles_to_colinear(&vector_data, id, responses, layer);
13951395
} else {
13961396
for handle in vector_data.all_connected(id) {

0 commit comments

Comments
 (0)