Fix: Assert loading undefined geometry node

This commit is contained in:
Hans Goudey
2023-05-16 11:04:14 -04:00
parent eb0e03bae7
commit 216cb9e3f0

View File

@@ -1893,6 +1893,9 @@ struct GeometryNodesLazyFunctionGraphBuilder {
for (const bNodeSocket *bsocket : bnode.output_sockets()) {
const int lf_index = mapping_->lf_index_by_bsocket[bsocket->index_in_tree()];
if (lf_index == -1) {
continue;
}
lf::OutputSocket &lf_socket = lf_node.output(lf_index);
output_socket_map_.add(bsocket, &lf_socket);
mapping_->bsockets_by_lf_socket_map.add(&lf_socket, bsocket);