diff options
author | Bernhard Liebl <Bernhard.Liebl@gmx.org> | 2017-12-27 09:28:02 +0100 |
---|---|---|
committer | Bernhard Liebl <Bernhard.Liebl@gmx.org> | 2017-12-27 20:24:58 +0100 |
commit | 8505871a87b59b27acc0912a6dd815231c3b78b1 (patch) | |
tree | 31a4fdc7afe2cd3960380fa7695d508f54c043a2 /scene/resources/capsule_shape_2d.h | |
parent | 32d8b99bc31e3762ae0dc017a05567da2802a313 (diff) |
More exact picking for canvas editor
Diffstat (limited to 'scene/resources/capsule_shape_2d.h')
-rw-r--r-- | scene/resources/capsule_shape_2d.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/resources/capsule_shape_2d.h b/scene/resources/capsule_shape_2d.h index 610f9a4cf9..bdbebd2f80 100644 --- a/scene/resources/capsule_shape_2d.h +++ b/scene/resources/capsule_shape_2d.h @@ -39,11 +39,14 @@ class CapsuleShape2D : public Shape2D { real_t radius; void _update_shape(); + Vector<Vector2> _get_points() const; protected: static void _bind_methods(); public: + virtual bool _edit_is_selected_on_click(const Point2 &p_point, double p_tolerance) const; + void set_height(real_t p_height); real_t get_height() const; |