summaryrefslogtreecommitdiffstats
path: root/scene/2d/line_2d.cpp
diff options
context:
space:
mode:
authorGilles Roudiere <gilles.roudiere@gmail.com>2018-03-08 21:35:41 +0100
committerGilles Roudiere <gilles.roudiere@gmail.com>2018-04-03 22:04:19 +0200
commit72ed1e4244efbba7d7d66781b6fcbd2faec3273f (patch)
tree23d8c8e56fb9e6a8afe10eb14ab1056d689d7d51 /scene/2d/line_2d.cpp
parent6435894275ad03911f916817704d94a0e5925425 (diff)
downloadredot-engine-72ed1e4244efbba7d7d66781b6fcbd2faec3273f.tar.gz
Remove the selection rect for nodes that do not require it
Diffstat (limited to 'scene/2d/line_2d.cpp')
-rw-r--r--scene/2d/line_2d.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/2d/line_2d.cpp b/scene/2d/line_2d.cpp
index ba4a5c5571..229c2c6fe8 100644
--- a/scene/2d/line_2d.cpp
+++ b/scene/2d/line_2d.cpp
@@ -62,6 +62,10 @@ Rect2 Line2D::_edit_get_rect() const {
return aabb;
}
+bool Line2D::_edit_use_rect() const {
+ return true;
+}
+
bool Line2D::_edit_is_selected_on_click(const Point2 &p_point, double p_tolerance) const {
const real_t d = _width / 2 + p_tolerance;