From 72ed1e4244efbba7d7d66781b6fcbd2faec3273f Mon Sep 17 00:00:00 2001 From: Gilles Roudiere Date: Thu, 8 Mar 2018 21:35:41 +0100 Subject: Remove the selection rect for nodes that do not require it --- scene/2d/path_2d.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scene/2d/path_2d.cpp') diff --git a/scene/2d/path_2d.cpp b/scene/2d/path_2d.cpp index 052a0ac02..7b77b34b2 100644 --- a/scene/2d/path_2d.cpp +++ b/scene/2d/path_2d.cpp @@ -57,6 +57,10 @@ Rect2 Path2D::_edit_get_rect() const { return aabb; } +bool Path2D::_edit_use_rect() const { + return true; +} + bool Path2D::_edit_is_selected_on_click(const Point2 &p_point, double p_tolerance) const { for (int i = 0; i < curve->get_point_count(); i++) { -- cgit v1.2.3-70-g09d2