diff options
| author | Rémi Verschelde | 2018-02-24 01:32:16 +0100 |
|---|---|---|
| committer | GitHub | 2018-02-24 01:32:16 +0100 |
| commit | eedb85e6186ad63b82f2cc78b1df9fa02291622d (patch) | |
| tree | 95096d0a568929a616c7268d26bad42963b5a6fa | |
| parent | 6b32e96d6e014d73e201834ad3556317cfe22a40 (diff) | |
| parent | c250a9a9f9e3af665daf89c0cbbdaa4cea2a6a83 (diff) | |
| download | godot-eedb85e6186ad63b82f2cc78b1df9fa02291622d.tar.gz godot-eedb85e6186ad63b82f2cc78b1df9fa02291622d.tar.zst godot-eedb85e6186ad63b82f2cc78b1df9fa02291622d.zip | |
Merge pull request #16932 from groud/fix_collision_shape_selection
Fixes collisions shape selection
| -rw-r--r-- | scene/resources/shape_2d.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/shape_2d.h b/scene/resources/shape_2d.h index ed655b8a9..7eb0406bd 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; |
