Merge pull request #89292 from Chaosus/vs_fix_crash

Fix possible crash when converting a node to other in visual shader
This commit is contained in:
Rémi Verschelde 2024-03-09 00:52:35 +01:00
commit e9ca51ce87
No known key found for this signature in database
GPG key ID: C3336907360768E1

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;