Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Holcomb <bob_holcomb@hotmail.com>2007-07-23 19:22:34 +0400
committerRobert Holcomb <bob_holcomb@hotmail.com>2007-07-23 19:22:34 +0400
commitca2f34db585db161f9d58740491dfbcaef500168 (patch)
tree9cb1dce167ea2d4194433cb1f80cdd76d76b8031 /source/blender/nodes/intern/CMP_nodes/CMP_math.c
parent3c99fb6389852dc1d7f32df1166dad404f0a9ba9 (diff)
Changed logic for early out to require only one input, not two. This allows for an image to be processed with a value.
Diffstat (limited to 'source/blender/nodes/intern/CMP_nodes/CMP_math.c')
-rw-r--r--source/blender/nodes/intern/CMP_nodes/CMP_math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_math.c b/source/blender/nodes/intern/CMP_nodes/CMP_math.c
index e267dc6f44c..cf2af9bbc11 100644
--- a/source/blender/nodes/intern/CMP_nodes/CMP_math.c
+++ b/source/blender/nodes/intern/CMP_nodes/CMP_math.c
@@ -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 */