summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-03-09 00:52:35 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-03-09 00:52:35 +0100
commite9ca51ce87c2276213a62b4f95939932a6e3e424 (patch)
tree1c8bcf4b76ff4113ad48a4718bfd68994b1c691a /editor
parent47941d49aca07f7574659859368ecee534d92b46 (diff)
parentd9292ea51efa4f3f22dd86254b5cb11f742565b6 (diff)
downloadredot-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.cpp1
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;