aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Roudiere2018-02-22 20:46:53 +0100
committerRémi Verschelde2018-02-24 10:53:10 +0100
commit34591f94515f3ced1448686b729c2ed8cccebd1d (patch)
tree2c5931204f1fa8c8e22a46bf7cab8a91460eb617
parentd79a7a27735fde30a843bbd931a663ffaa5884c9 (diff)
downloadgodot-34591f94515f3ced1448686b729c2ed8cccebd1d.tar.gz
godot-34591f94515f3ced1448686b729c2ed8cccebd1d.tar.zst
godot-34591f94515f3ced1448686b729c2ed8cccebd1d.zip
Fixes collisions shape selection
(cherry picked from commit c250a9a9f9e3af665daf89c0cbbdaa4cea2a6a83)
-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 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;