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

This commit is contained in:
Yuri Rubinsky 2024-03-08 21:28:05 +03:00
parent ffc41fb76d
commit d9292ea51e
1 changed files with 1 additions and 0 deletions

View File

@ -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;