From d9292ea51efa4f3f22dd86254b5cb11f742565b6 Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Fri, 8 Mar 2024 21:28:05 +0300 Subject: [PATCH] Fix possible crash when converting a node to other in visual shader --- editor/plugins/visual_shader_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index 02e2a9f4876..b6a4a141173 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/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;