diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-09 00:52:35 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-09 00:52:35 +0100 |
commit | e9ca51ce87c2276213a62b4f95939932a6e3e424 (patch) | |
tree | 1c8bcf4b76ff4113ad48a4718bfd68994b1c691a /editor | |
parent | 47941d49aca07f7574659859368ecee534d92b46 (diff) | |
parent | d9292ea51efa4f3f22dd86254b5cb11f742565b6 (diff) | |
download | redot-engine-e9ca51ce87c2276213a62b4f95939932a6e3e424.tar.gz |
Merge pull request #89292 from Chaosus/vs_fix_crash
Fix possible crash when converting a node to other in visual shader
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/visual_shader_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index 02e2a9f487..b6a4a14117 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; |