diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-01-03 11:15:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-03 11:15:28 +0100 |
commit | 459ee51338ff9ffb8248a4351eee3b558438aa50 (patch) | |
tree | b366aad4e6ee15907af75cb659f42b5ec79b6f58 /scene/2d/canvas_item.h | |
parent | 0b235a5efa9f6825e638d98d9eaadcc11423b3c3 (diff) | |
parent | 8505871a87b59b27acc0912a6dd815231c3b78b1 (diff) |
Merge pull request #15093 from poke1024/canvas-editor-select
More exact picking for canvas editor
Diffstat (limited to 'scene/2d/canvas_item.h')
-rw-r--r-- | scene/2d/canvas_item.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/canvas_item.h b/scene/2d/canvas_item.h index e994ebb5aa..1db9e4902a 100644 --- a/scene/2d/canvas_item.h +++ b/scene/2d/canvas_item.h @@ -229,6 +229,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; } Rect2 _edit_get_item_and_children_rect() const; virtual bool _edit_use_rect() const { return false; }; |