Rename TextureRect.expand to ignore_texture_size
This commit is contained in:
parent
6e4da909aa
commit
562fc4cc0d
10 changed files with 30 additions and 38 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue