Fix some issue with TileMap's and other nodes' boundaries

Fixes #30348
Addresses a small part of #30012
This commit is contained in:
Bojidar Marinov 2019-07-08 12:35:52 +03:00
parent 3bfffcc568
commit ebf2a4d553
No known key found for this signature in database
GPG key ID: 4D546A8F1E091856
4 changed files with 18 additions and 7 deletions

View file

@ -58,7 +58,7 @@ Rect2 Path2D::_edit_get_rect() const {
}
bool Path2D::_edit_use_rect() const {
return true;
return curve.is_valid() && curve->get_point_count() != 0;
}
bool Path2D::_edit_is_selected_on_click(const Point2 &p_point, double p_tolerance) const {