Merge pull request #27294 from lupoDharkael/rect2i
Add missing methods to Rect2i
This commit is contained in:
commit
d6b20e854c
2 changed files with 32 additions and 9 deletions
|
|
@ -64,7 +64,7 @@ bool TextureButton::has_point(const Point2 &p_point) const {
|
|||
Rect2 rect = Rect2();
|
||||
Size2 mask_size = click_mask->get_size();
|
||||
|
||||
if (_position_rect.no_area()) {
|
||||
if (_position_rect.has_no_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