소스 검색

Merge pull request #34107 from codecustard/fix-vseditor-add-node-pos

Fixes wrong position when adding node in VS editor
Rémi Verschelde 5 년 전
부모
커밋
129a22cd90
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      modules/visual_script/visual_script_editor.cpp

+ 1 - 0
modules/visual_script/visual_script_editor.cpp

@@ -3464,6 +3464,7 @@ void VisualScriptEditor::_selected_connect_node(const String &p_text, const Stri
 		ofs = ofs.snapped(Vector2(snap, snap));
 	}
 	ofs /= EDSCALE;
+	ofs /= graph->get_zoom();
 
 	Set<int> vn;