diff options
Diffstat (limited to 'scene/resources/line_shape_2d.cpp')
-rw-r--r-- | scene/resources/line_shape_2d.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/resources/line_shape_2d.cpp b/scene/resources/line_shape_2d.cpp index 22dd426295..802ccaaee6 100644 --- a/scene/resources/line_shape_2d.cpp +++ b/scene/resources/line_shape_2d.cpp @@ -39,8 +39,9 @@ bool LineShape2D::_edit_is_selected_on_click(const Point2 &p_point, double p_tol for (int i = 0; i < 2; i++) { Vector2 closest = Geometry::get_closest_point_to_segment_2d(p_point, l[i]); - if (p_point.distance_to(closest) < p_tolerance) + if (p_point.distance_to(closest) < p_tolerance) { return true; + } } return false; |