diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-12 20:06:26 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-12 20:06:26 +0100 |
commit | 797fb296f08b3d8f77f318ece2f203df225f5cdd (patch) | |
tree | 039f59154a29adf3d5f808df70d8e61e2f1a3d9a /editor/plugins/tiles | |
parent | 73ab51465748a15ed4d80d66a44db83bfe574bb6 (diff) | |
parent | dfc4367a478f1d6c8f13aeb9d8e0be01156f5afb (diff) |
Merge pull request #58517 from KoBeWi/size_matters
Add expand modes to TextureRect
Diffstat (limited to 'editor/plugins/tiles')
-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); |