summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kram <bright.14.1993@gmail.com>2016-11-27 02:56:42 +0200
committerDmitry Kram <bright.14.1993@gmail.com>2016-11-27 02:56:42 +0200
commitd7667389914e446f81b8c4810a5b1f9a00eabfca (patch)
treedd2be170a56246c200f2d3b1ed151abecc2d1c58
parentcefb2de339b3da78bacb80241280987e2a1e2df8 (diff)
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.
-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 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);