Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/nodes/COM_ImageNode.cc
| Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | if (image->rr) { | ||||
| break; | break; | ||||
| default: | default: | ||||
| /* dummy operation is added below */ | /* dummy operation is added below */ | ||||
| break; | break; | ||||
| } | } | ||||
| if (index == 0 && operation) { | if (index == 0 && operation) { | ||||
| converter.addPreview(operation->getOutputSocket()); | converter.addPreview(operation->getOutputSocket()); | ||||
| } | } | ||||
| if (STREQ(rpass->name, RE_PASSNAME_COMBINED)) { | if (STREQ(rpass->name, RE_PASSNAME_COMBINED) && !(bnodeSocket->flag & SOCK_UNAVAIL)) { | ||||
| for (NodeOutput *alphaSocket : getOutputSockets()) { | for (NodeOutput *alphaSocket : getOutputSockets()) { | ||||
| bNodeSocket *bnodeAlphaSocket = alphaSocket->getbNodeSocket(); | bNodeSocket *bnodeAlphaSocket = alphaSocket->getbNodeSocket(); | ||||
| if (!STREQ(bnodeAlphaSocket->name, "Alpha")) { | if (!STREQ(bnodeAlphaSocket->name, "Alpha")) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| NodeImageLayer *alphaStorage = (NodeImageLayer *)bnodeSocket->storage; | NodeImageLayer *alphaStorage = (NodeImageLayer *)bnodeSocket->storage; | ||||
| if (!STREQ(alphaStorage->pass_name, RE_PASSNAME_COMBINED)) { | if (!STREQ(alphaStorage->pass_name, RE_PASSNAME_COMBINED)) { | ||||
| continue; | continue; | ||||
| ▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines | |||||