Skip to content

Commit

Permalink
Merge pull request #89292 from Chaosus/vs_fix_crash
Browse files Browse the repository at this point in the history
Fix possible crash when converting a node to other in visual shader
  • Loading branch information
akien-mga committed Mar 8, 2024
2 parents 47941d4 + d9292ea commit e9ca51c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/plugins/visual_shader_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e9ca51c

Please sign in to comment.