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

Merge pull request #27294 from lupoDharkael/rect2i

Add missing methods to Rect2i
This commit is contained in:
Rémi Verschelde
2019-04-30 11:46:40 +02:00
committed by GitHub
2 changed files with 32 additions and 9 deletions

View File

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