Merge pull request #16932 from groud/fix_collision_shape_selection

Fixes collisions shape selection
This commit is contained in:
Rémi Verschelde 2018-02-24 01:32:16 +01:00 committed by GitHub
commit eedb85e618
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;