From 6227e8f343528202da7a09835e1e3dcc60e3e27c Mon Sep 17 00:00:00 2001 From: Dmitry Kram Date: Sun, 27 Nov 2016 02:56:42 +0200 Subject: [PATCH] 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) --- tools/editor/plugins/texture_region_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/editor/plugins/texture_region_editor_plugin.cpp b/tools/editor/plugins/texture_region_editor_plugin.cpp index 6b918e6e8f..4a24c4d344 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);