Changed logic for early out to require only one input, not two. This allows for an image to be processed with a value.

This commit is contained in:
2007-07-23 15:22:34 +00:00
parent 3c99fb6389
commit ca2f34db58

View File

@@ -142,7 +142,7 @@ static void node_composit_exec_math(void *data, bNode *node, bNodeStack **in, bN
CompBuf *stackbuf;
/* check for inputs and outputs for early out*/
if(in[0]->hasinput==0 || in[1]->hasinput==0) return;
if(in[0]->hasinput==0 && in[1]->hasinput==0) return;
if(out[0]->hasoutput==0) return;
/* no image-color operation */