Browse Source

Fix build error after #27294

Rémi Verschelde 6 năm trước cách đây
mục cha
commit
e949d6c2ae
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scene/gui/texture_rect.cpp

+ 1 - 1
scene/gui/texture_rect.cpp

@@ -96,7 +96,7 @@ void TextureRect::_notification(int p_what) {
 		size.width *= hflip ? -1.0f : 1.0f;
 		size.width *= hflip ? -1.0f : 1.0f;
 		size.height *= vflip ? -1.0f : 1.0f;
 		size.height *= vflip ? -1.0f : 1.0f;
 
 
-		if (region.no_area()) {
+		if (region.has_no_area()) {
 			draw_texture_rect(texture, Rect2(offset, size), tile);
 			draw_texture_rect(texture, Rect2(offset, size), tile);
 		} else {
 		} else {
 			draw_texture_rect_region(texture, Rect2(offset, size), region);
 			draw_texture_rect_region(texture, Rect2(offset, size), region);