diff options
| author | Gilles Roudiere | 2018-03-08 21:35:41 +0100 |
|---|---|---|
| committer | Gilles Roudiere | 2018-04-03 22:04:19 +0200 |
| commit | 72ed1e4244efbba7d7d66781b6fcbd2faec3273f (patch) | |
| tree | 23d8c8e56fb9e6a8afe10eb14ab1056d689d7d51 /scene/2d/path_2d.cpp | |
| parent | 6435894275ad03911f916817704d94a0e5925425 (diff) | |
| download | godot-72ed1e4244efbba7d7d66781b6fcbd2faec3273f.tar.gz godot-72ed1e4244efbba7d7d66781b6fcbd2faec3273f.tar.zst godot-72ed1e4244efbba7d7d66781b6fcbd2faec3273f.zip | |
Remove the selection rect for nodes that do not require it
Diffstat (limited to '')
| -rw-r--r-- | scene/2d/path_2d.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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++) { |
