Fixes collisions shape selection

This commit is contained in:
Gilles Roudiere 2018-02-22 20:46:53 +01:00
parent be7bfdfac3
commit c250a9a9f9
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ protected:
Shape2D(const RID &p_rid); Shape2D(const RID &p_rid);
public: 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); void set_custom_solver_bias(real_t p_bias);
real_t get_custom_solver_bias() const; real_t get_custom_solver_bias() const;