[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11225] trunk/blender/source/blender/nodes /intern/CMP_nodes/CMP_math.c: One more time.... I misunderstood the guidance about values as inputs for
Robert Holcomb
bob_holcomb at hotmail.com
Wed Jul 11 05:33:31 CEST 2007
Revision: 11225
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11225
Author: scourage
Date: 2007-07-11 05:33:28 +0200 (Wed, 11 Jul 2007)
Log Message:
-----------
One more time....I misunderstood the guidance about values as inputs for
the math node. Now it functions with two values as inputs (no image
neccissary). Kinda back where it started ;)
Modified Paths:
--------------
trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_math.c
Modified: trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_math.c
===================================================================
--- trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_math.c 2007-07-11 03:00:39 UTC (rev 11224)
+++ trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_math.c 2007-07-11 03:33:28 UTC (rev 11225)
@@ -143,9 +143,14 @@
/* check for inputs and outputs for early out*/
if(in[0]->hasinput==0 || in[1]->hasinput==0) return;
- if(in[0]->data==NULL && in[1]->data==NULL) return;
if(out[0]->hasoutput==0) return;
+ /* no image-color operation */
+ if(in[0]->data==NULL && in[1]->data==NULL) {
+ do_math(node, out[0]->vec, in[0]->vec, in[1]->vec);
+ return;
+ }
+
/*create output based on first input */
if(cbuf) {
stackbuf=alloc_compbuf(cbuf->x, cbuf->y, CB_VAL, 1);
More information about the Bf-blender-cvs
mailing list