소스 검색

Merge pull request #13067 from sersoong/2.1-test3

[2.1] - Fix TextureRegionEditor's snap mode is not initial bug.
Rémi Verschelde 7 년 전
부모
커밋
f32497929b
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);