Compositor: Fix Incorrect Attaching NodeSockets.

Introduced by recent commit.
This commit is contained in:
Jeroen Bakker 2021-03-30 13:54:01 +02:00
parent 04a92297dd
commit b48a573adb
1 changed files with 2 additions and 3 deletions

View File

@ -88,11 +88,10 @@ void ImageNode::convertToOperations(NodeConverter &converter,
if (image->rr) {
RenderLayer *rl = (RenderLayer *)BLI_findlink(&image->rr->layers, imageuser->layer);
if (rl) {
int index;
is_multilayer_ok = true;
for (NodeOutput *socket : getOutputSockets()) {
for (int64_t index = 0; index < outputs.size(); index++) {
NodeOutput *socket = outputs[index];
NodeOperation *operation = nullptr;
bNodeSocket *bnodeSocket = socket->getbNodeSocket();
NodeImageLayer *storage = (NodeImageLayer *)bnodeSocket->storage;