diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-02-19 20:05:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-19 20:05:35 +0100 |
commit | b93d6a001b15d544ea346c4804fb0d853ab11622 (patch) | |
tree | f55afff20f81b1f131e32a2feff1ff44ce9831de /scene/2d/canvas_item.h | |
parent | 959b3e6d8c6eee37cb8d7ab3be0bc8ada4687b43 (diff) | |
parent | 8dad41e395220404fb0fdafaa0cd4ed18179231f (diff) |
Merge pull request #16566 from groud/gui_input_rework
2D Editor GUI input rework
Diffstat (limited to 'scene/2d/canvas_item.h')
-rw-r--r-- | scene/2d/canvas_item.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/canvas_item.h b/scene/2d/canvas_item.h index 7e5bea0511..68384b9f1e 100644 --- a/scene/2d/canvas_item.h +++ b/scene/2d/canvas_item.h @@ -230,7 +230,7 @@ public: // Used to resize/move/select the node virtual void _edit_set_rect(const Rect2 &p_rect){}; virtual Rect2 _edit_get_rect() const { return Rect2(-32, -32, 64, 64); }; - virtual bool _edit_is_selected_on_click(const Point2 &p_point, double p_tolerance) const { return true; } + virtual bool _edit_is_selected_on_click(const Point2 &p_point, double p_tolerance) const { return _edit_get_rect().has_point(p_point); } Rect2 _edit_get_item_and_children_rect() const; virtual bool _edit_use_rect() const { return false; }; |