From 14c36b733cba7e758454db8d7867719af0144c43 Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Thu, 18 Jul 2024 11:40:02 +0300 Subject: [PATCH] Fix internal connection count decreased if visual shader node removed --- scene/resources/visual_shader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp index 3b38db6237b..4bedcb18200 100644 --- a/scene/resources/visual_shader.cpp +++ b/scene/resources/visual_shader.cpp @@ -1003,6 +1003,7 @@ void VisualShader::remove_node(Type p_type, int p_id) { g->nodes[connection.to_node].node->set_input_port_connected(connection.to_port, false); } else if (connection.to_node == p_id) { g->nodes[connection.from_node].next_connected_nodes.erase(p_id); + g->nodes[connection.from_node].node->set_output_port_connected(connection.from_port, false); } g->connections.erase(E); }