1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Use is_equal_approx in more places

This commit is contained in:
Aaron Franke
2021-07-16 13:19:55 -04:00
parent e248d2629a
commit 78b0a7da03
12 changed files with 26 additions and 28 deletions

View File

@@ -481,7 +481,7 @@ void Path2DEditor::_mode_selected(int p_mode) {
Vector2 begin = node->get_curve()->get_point_position(0);
Vector2 end = node->get_curve()->get_point_position(node->get_curve()->get_point_count() - 1);
if (begin.distance_to(end) < CMP_EPSILON) {
if (begin.is_equal_approx(end)) {
return;
}