From eeedef82952407fdf1f3c1219cab0e2a34f0e52d Mon Sep 17 00:00:00 2001 From: lupoDharkael Date: Wed, 25 Nov 2020 01:03:15 +0100 Subject: Clear connection from/to empty after used The connection data provided by _connection_from_empty and _connection_to_empty was not cleared and caused unwanted connections in some cases. --- editor/plugins/visual_shader_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'editor') diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index 1651de4048..b9b4ebde5c 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -1808,6 +1808,7 @@ VisualShaderNode *VisualShaderEditor::_add_node(int p_idx, int p_op_idx) { } } } + _member_cancel(); VisualShaderNodeUniform *uniform = Object::cast_to(vsnode.ptr()); if (uniform) { -- cgit v1.2.3