소스 검색

Fix possible crash when converting a node to other in visual shader

Yuri Rubinsky 1 년 전
부모
커밋
d9292ea51e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      editor/plugins/visual_shader_editor_plugin.cpp

+ 1 - 0
editor/plugins/visual_shader_editor_plugin.cpp

@@ -482,6 +482,7 @@ void VisualShaderGraphPlugin::add_node(VisualShader::Type p_type, int p_id, bool
 	if (p_just_update) {
 		Link &link = links[p_id];
 
+		link.visual_node = vsnode.ptr();
 		link.graph_element = node;
 		link.preview_box = nullptr;
 		link.preview_pos = -1;