diff options
author | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-11-10 10:07:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-10 10:07:49 +0100 |
commit | e2785fbdede5022bb4e2d48811ffef0c94efcc0f (patch) | |
tree | d8567b6a9aa33d978139e80209b10924920126ff | |
parent | 9a4a59ce13ba1d0542abd1bfaafcea181c37498e (diff) | |
parent | 1fc787e6acc5ea6388c189c524078c9c969b2c86 (diff) |
Merge pull request #12797 from viprip/12668_fix_texture_region_dock_zoom_icon_is_misaligned
Fix misaligned zoom icon in Texture Region Editor plugin
-rw-r--r-- | editor/plugins/texture_region_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/texture_region_editor_plugin.cpp b/editor/plugins/texture_region_editor_plugin.cpp index 8870166dba..48aed0cf6c 100644 --- a/editor/plugins/texture_region_editor_plugin.cpp +++ b/editor/plugins/texture_region_editor_plugin.cpp @@ -860,6 +860,7 @@ TextureRegionEditor::TextureRegionEditor(EditorNode *p_editor) { hb_tools->add_child(separator); icon_zoom = memnew(TextureRect); + icon_zoom->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED); hb_tools->add_child(icon_zoom); zoom_out = memnew(ToolButton); |