diff options
author | kobewi <kobewi4e@gmail.com> | 2022-02-25 01:19:24 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2023-01-12 17:06:03 +0100 |
commit | dfc4367a478f1d6c8f13aeb9d8e0be01156f5afb (patch) | |
tree | 42fc219bcf1d5d76b8cb5225e85bd7dc00a9b07b /editor/plugins/tiles/atlas_merging_dialog.cpp | |
parent | caf94f244e1a952300c6426f5d7d9939dd93d472 (diff) |
Add expand modes to TextureRect
Diffstat (limited to 'editor/plugins/tiles/atlas_merging_dialog.cpp')
-rw-r--r-- | editor/plugins/tiles/atlas_merging_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/tiles/atlas_merging_dialog.cpp b/editor/plugins/tiles/atlas_merging_dialog.cpp index 7edf6e3a30..deb1df42d3 100644 --- a/editor/plugins/tiles/atlas_merging_dialog.cpp +++ b/editor/plugins/tiles/atlas_merging_dialog.cpp @@ -300,7 +300,7 @@ AtlasMergingDialog::AtlasMergingDialog() { preview = memnew(TextureRect); preview->set_h_size_flags(Control::SIZE_EXPAND_FILL); preview->set_v_size_flags(Control::SIZE_EXPAND_FILL); - preview->set_ignore_texture_size(true); + preview->set_expand_mode(TextureRect::EXPAND_IGNORE_SIZE); preview->hide(); preview->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED); atlas_merging_right_panel->add_child(preview); |