summaryrefslogtreecommitdiff
path: root/scene/resources/shape_2d.h
diff options
context:
space:
mode:
authorGilles Roudiere <gilles.roudiere@gmail.com>2018-02-22 20:46:53 +0100
committerGilles Roudiere <gilles.roudiere@gmail.com>2018-02-22 20:48:25 +0100
commitc250a9a9f9e3af665daf89c0cbbdaa4cea2a6a83 (patch)
treede551781c070b26cbde6f773f784e359a89d9fd4 /scene/resources/shape_2d.h
parentbe7bfdfac30b3772fde6058d470b81b480f03be7 (diff)
Fixes collisions shape selection
Diffstat (limited to 'scene/resources/shape_2d.h')
-rw-r--r--scene/resources/shape_2d.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/shape_2d.h b/scene/resources/shape_2d.h
index ed655b8a93..7eb0406bd8 100644
--- a/scene/resources/shape_2d.h
+++ b/scene/resources/shape_2d.h
@@ -45,7 +45,7 @@ protected:
Shape2D(const RID &p_rid);
public:
- 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 get_rect().has_point(p_point); }
void set_custom_solver_bias(real_t p_bias);
real_t get_custom_solver_bias() const;