1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Rename TextureRect.expand to ignore_texture_size

This commit is contained in:
kobewi
2021-11-30 01:21:45 +01:00
parent 6e4da909aa
commit 562fc4cc0d
10 changed files with 30 additions and 38 deletions

View File

@@ -84,7 +84,7 @@ TexturePreview::TexturePreview(Ref<Texture2D> p_texture, bool p_show_metadata) {
texture_display->set_texture(p_texture);
texture_display->set_anchors_preset(TextureRect::PRESET_WIDE);
texture_display->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED);
texture_display->set_expand(true);
texture_display->set_ignore_texture_size(true);
add_child(texture_display);
if (p_show_metadata) {