Fix T76309: changing AOV type does not update compositor socket

This commit is contained in:
Brecht Van Lommel
2020-05-01 23:10:45 +02:00
parent 433eaffd55
commit 447a7f510e

View File

@@ -86,6 +86,12 @@ static void cmp_node_image_add_pass_output(bNodeTree *ntree,
{
bNodeSocket *sock = BLI_findstring(&node->outputs, name, offsetof(bNodeSocket, name));
/* Replace if types don't match. */
if (sock && sock->type != type) {
nodeRemoveSocket(ntree, node, sock);
sock = NULL;
}
/* Create socket if it doesn't exist yet. */
if (sock == NULL) {
if (rres_index >= 0) {