aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins
diff options
context:
space:
mode:
authorSaracen2016-08-04 19:42:57 +0100
committerRémi Verschelde2016-08-08 18:14:29 +0200
commitdd97502788a489627401c4183f228006ff3a65d8 (patch)
tree6eafd874d6e605b4cc552dbb51768726534d4d75 /tools/editor/plugins
parentd55304c56f08e44c0f1fb1ccc75899180612e504 (diff)
downloadgodot-dd97502788a489627401c4183f228006ff3a65d8.tar.gz
godot-dd97502788a489627401c4183f228006ff3a65d8.tar.zst
godot-dd97502788a489627401c4183f228006ff3a65d8.zip
TextureRegionEditor snap_mode fix.
(cherry picked from commit b578cf4da8feaceca1862d0fb5a4e61818275503)
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 db888208f..3d220b847 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);