You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix possible crash when converting a node to other in visual shader
This commit is contained in:
@@ -482,6 +482,7 @@ void VisualShaderGraphPlugin::add_node(VisualShader::Type p_type, int p_id, bool
|
|||||||
if (p_just_update) {
|
if (p_just_update) {
|
||||||
Link &link = links[p_id];
|
Link &link = links[p_id];
|
||||||
|
|
||||||
|
link.visual_node = vsnode.ptr();
|
||||||
link.graph_element = node;
|
link.graph_element = node;
|
||||||
link.preview_box = nullptr;
|
link.preview_box = nullptr;
|
||||||
link.preview_pos = -1;
|
link.preview_pos = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user