You've already forked godot
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user