diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2019-04-30 11:46:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-30 11:46:40 +0200 |
| commit | d6b20e854cbca83175e83c2f87e11d406f332005 (patch) | |
| tree | ff91b42a05145280e24649b5633529913fa4a718 /scene | |
| parent | f40c62fa29e8b08fe69487efa92fd08a3dea742c (diff) | |
| parent | 6232e7eed3a8cf583712b4b60bafe8c96eef22f0 (diff) | |
Merge pull request #27294 from lupoDharkael/rect2i
Add missing methods to Rect2i
Diffstat (limited to 'scene')
| -rw-r--r-- | scene/gui/texture_button.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/texture_button.cpp b/scene/gui/texture_button.cpp index 795b25cce0..b5f949aeb7 100644 --- a/scene/gui/texture_button.cpp +++ b/scene/gui/texture_button.cpp @@ -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 |