Skip to content

Commit 502ca47

Browse files
0SlowPoke0Keavon
authored andcommitted
fix when scaling when anchor
1 parent 7315e28 commit 502ca47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

editor/src/messages/portfolio/document/utility_types/transformation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ impl<'a> Selected<'a> {
616616
responses.add(GraphOperationMessage::Vector { layer, modification_type });
617617
}
618618

619-
if transform_operation.is_some_and(|transform_operation| matches!(transform_operation, TransformOperation::Scaling(_))) && initial_points.anchors.len() < 3 {
619+
if transform_operation.is_some_and(|transform_operation| matches!(transform_operation, TransformOperation::Scaling(_))) && (initial_points.anchors.len() == 2) {
620620
return;
621621
}
622622

0 commit comments

Comments
 (0)