Переглянути джерело

Fix TextureRegionEditor's snap mode is not initial bug.

sersoong 7 роки тому
батько
коміт
19d2ba2b08
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      editor/plugins/texture_region_editor_plugin.cpp

+ 1 - 0
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);