summaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorSaracen <SaracenOne@gmail.com>2016-08-04 19:42:57 +0100
committerSaracen <SaracenOne@gmail.com>2016-08-04 19:49:11 +0100
commitb578cf4da8feaceca1862d0fb5a4e61818275503 (patch)
tree97fa94a2d06ab834689cc2a5b5d39447f78f9d82 /tools/editor
parent6ed5d48d0c01c551735121915eb006376269c380 (diff)
TextureRegionEditor snap_mode fix.
Diffstat (limited to 'tools/editor')
-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 db888208fb..3d220b8474 100644
--- a/tools/editor/plugins/texture_region_editor_plugin.cpp
+++ b/tools/editor/plugins/texture_region_editor_plugin.cpp
@@ -503,8 +503,8 @@ void TextureRegionEditor::_scroll_changed(float)
void TextureRegionEditor::_set_snap_mode(int p_mode)
{
- snap_mode_button->get_popup()->set_item_checked(snap_mode,false);
snap_mode = p_mode;
+ snap_mode_button->get_popup()->set_item_checked(snap_mode,false);
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);