summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2016-11-28 15:31:42 +0100
committerGitHub <noreply@github.com>2016-11-28 15:31:42 +0100
commite297087caba99606ff382ee731a75e8f2347f894 (patch)
tree832da9e90fcdc70a5ce8e6a8f1956396a6d6a0d8
parent895b29978bf30c9ef3235a11c0430cf4ec672165 (diff)
parentd7667389914e446f81b8c4810a5b1f9a00eabfca (diff)
Merge pull request #7195 from bugstew/texture_region_snap_mode
Fix snap mode selector sticking in texture region module
-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);