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/bone_map_editor_plugin.cpp | |
parent | 73ab51465748a15ed4d80d66a44db83bfe574bb6 (diff) | |
parent | dfc4367a478f1d6c8f13aeb9d8e0be01156f5afb (diff) | |
download | redot-engine-797fb296f08b3d8f77f318ece2f203df225f5cdd.tar.gz |
Merge pull request #58517 from KoBeWi/size_matters
Add expand modes to TextureRect
Diffstat (limited to 'editor/plugins/bone_map_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/bone_map_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/bone_map_editor_plugin.cpp b/editor/plugins/bone_map_editor_plugin.cpp index dfcf9256c4..c913a9b0ab 100644 --- a/editor/plugins/bone_map_editor_plugin.cpp +++ b/editor/plugins/bone_map_editor_plugin.cpp @@ -316,7 +316,7 @@ void BoneMapper::create_editor() { profile_texture = memnew(TextureRect); profile_texture->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED); - profile_texture->set_ignore_texture_size(true); + profile_texture->set_expand_mode(TextureRect::EXPAND_IGNORE_SIZE); profile_texture->set_h_size_flags(Control::SIZE_FILL); profile_texture->set_v_size_flags(Control::SIZE_FILL); bone_mapper_field->add_child(profile_texture); |