We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2f8c99 commit d0e1d89Copy full SHA for d0e1d89
editor/src/messages/tool/common_functionality/shape_editor.rs
@@ -1079,7 +1079,7 @@ impl ShapeState {
1079
1080
let mut normalized = handle_directions[0].and_then(|a| handle_directions[1].and_then(|b| (a - b).try_normalize()));
1081
1082
- if normalized.is_none() {
+ if normalized.is_none() || handle_directions.iter().any(|&d| d.is_some_and(|d| d.length_squared() < f64::EPSILON * 1e5)) {
1083
handle_directions = anchor_positions.map(|relative_anchor| relative_anchor.map(|relative_anchor| (relative_anchor - anchor) / 3.));
1084
normalized = handle_directions[0].and_then(|a| handle_directions[1].and_then(|b| (a - b).try_normalize()))
1085
}
0 commit comments