Fix T60073: can't unlink by dragging from some node input sockets.

This commit is contained in:
2019-01-03 18:20:30 +01:00
parent fffdedbcc1
commit db03be60ec

View File

@@ -115,8 +115,7 @@ static bNodeSocket *verify_socket_template(bNodeTree *ntree, bNode *node, int in
if (sock->type != stemp->type) {
nodeModifySocketType(ntree, node, sock, stemp->type, stemp->subtype);
}
sock->limit = (stemp->limit == 0 ? 0xFFF : stemp->limit);
sock->limit = (stemp->limit == 0 ? (in_out == SOCK_IN ? 1 : 0xFFF) : stemp->limit);
sock->flag |= stemp->flag;
}
else {