aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins
diff options
context:
space:
mode:
authorDmitry Kram2016-11-27 02:56:42 +0200
committerRémi Verschelde2017-01-12 19:15:26 +0100
commit6227e8f343528202da7a09835e1e3dcc60e3e27c (patch)
treee3974d3a101223c8e6e691a08f487dc164a079c1 /tools/editor/plugins
parent608e3f309705244757f996df416c832f160f09a4 (diff)
downloadgodot-6227e8f343528202da7a09835e1e3dcc60e3e27c.tar.gz
godot-6227e8f343528202da7a09835e1e3dcc60e3e27c.tar.zst
godot-6227e8f343528202da7a09835e1e3dcc60e3e27c.zip
Fix snap mode selector sticking in texture region module
When changing snap mode in texture region plugin ticks was not updating. Issue fixed changing order of setting checked status and setting snap mode. (cherry picked from commit d7667389914e446f81b8c4810a5b1f9a00eabfca)
Diffstat (limited to 'tools/editor/plugins')
-rw-r--r--tools/editor/plugins/texture_region_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/plugins/texture_region_editor_plugin.cpp b/tools/editor/plugins/texture_region_editor_plugin.cpp
index 6b918e6e8..4a24c4d34 100644
--- a/tools/editor/plugins/texture_region_editor_plugin.cpp
+++ b/tools/editor/plugins/texture_region_editor_plugin.cpp
@@ -507,8 +507,8 @@ void TextureRegionEditor::_scroll_changed(float)
void TextureRegionEditor::_set_snap_mode(int p_mode)
{
- snap_mode = p_mode;
snap_mode_button->get_popup()->set_item_checked(snap_mode,false);
+ snap_mode = p_mode;
snap_mode_button->set_text(snap_mode_button->get_popup()->get_item_text(p_mode));
snap_mode_button->get_popup()->set_item_checked(snap_mode,true);