소스 검색

Merge pull request #20953 from hpvb/fix-20322

Don't try to update the visual shader graph if it doesn't exist yet
Rémi Verschelde 7 년 전
부모
커밋
641dd15b1d
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      editor/plugins/visual_shader_editor_plugin.cpp

+ 3 - 0
editor/plugins/visual_shader_editor_plugin.cpp

@@ -119,6 +119,9 @@ void VisualShaderEditor::_update_graph() {
 	if (updating)
 		return;
 
+	if (visual_shader.is_null())
+		return;
+
 	graph->set_scroll_ofs(visual_shader->get_graph_offset() * EDSCALE);
 
 	VisualShader::Type type = VisualShader::Type(edit_type->get_selected());