From 19d2ba2b089059de277feeafdde36e01576d911c Mon Sep 17 00:00:00 2001 From: sersoong Date: Mon, 20 Nov 2017 09:15:49 +0800 Subject: [PATCH] Fix TextureRegionEditor's snap mode is not initial bug. --- editor/plugins/texture_region_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/plugins/texture_region_editor_plugin.cpp b/editor/plugins/texture_region_editor_plugin.cpp index 8afabc356c1..157cbf0d01a 100644 --- a/editor/plugins/texture_region_editor_plugin.cpp +++ b/editor/plugins/texture_region_editor_plugin.cpp @@ -777,6 +777,7 @@ TextureRegionEditor::TextureRegionEditor(EditorNode *p_editor) { edited_margin = -1; drag_index = -1; drag = false; + snap_mode = SNAP_NONE; VBoxContainer *main_vb = memnew(VBoxContainer); add_child(main_vb);