diff options
author | kobewi <kobewi4e@gmail.com> | 2021-11-30 01:21:45 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-01-07 20:21:17 +0100 |
commit | 562fc4cc0d95044af0bdfb6f3a500386028cccff (patch) | |
tree | 19136080207f7f46bf2ca7f8f1ea48286fbca18c /editor/plugins/asset_library_editor_plugin.cpp | |
parent | 6e4da909aaa7ca70864016bac3a8fe424ee7194a (diff) |
Rename TextureRect.expand to ignore_texture_size
Diffstat (limited to 'editor/plugins/asset_library_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/asset_library_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp index 4b7ad7e325..49bef4acd5 100644 --- a/editor/plugins/asset_library_editor_plugin.cpp +++ b/editor/plugins/asset_library_editor_plugin.cpp @@ -288,7 +288,7 @@ EditorAssetLibraryItemDescription::EditorAssetLibraryItemDescription() { preview = memnew(TextureRect); previews_vbox->add_child(preview); - preview->set_expand(true); + preview->set_ignore_texture_size(true); preview->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED); preview->set_custom_minimum_size(Size2(640 * EDSCALE, 345 * EDSCALE)); |