1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Replace Rect2(i) has_no_area with has_area

This commit is contained in:
Aaron Franke
2022-08-14 21:51:45 -05:00
parent 817ae95667
commit 995b9f94e8
12 changed files with 44 additions and 46 deletions

View File

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