소스 검색

Fix internal connection count decreased if visual shader node removed

Yuri Rubinsky 1 년 전
부모
커밋
14c36b733c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scene/resources/visual_shader.cpp

+ 1 - 0
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);
 		}