Replace Rect2(i) has_no_area with has_area
This commit is contained in:
parent
817ae95667
commit
995b9f94e8
12 changed files with 44 additions and 46 deletions
|
|
@ -67,7 +67,7 @@ bool TextureButton::has_point(const Point2 &p_point) const {
|
|||
Rect2 rect = Rect2();
|
||||
Size2 mask_size = click_mask->get_size();
|
||||
|
||||
if (_position_rect.has_no_area()) {
|
||||
if (!_position_rect.has_area()) {
|
||||
rect.size = mask_size;
|
||||
} else if (_tile) {
|
||||
// if the stretch mode is tile we offset the point to keep it inside the mask size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue