[Bf-blender-cvs] [639d0ab2915] soc-2019-cycles-procedural: Only assign Vector Math outputs if they are linked.

OmarSquircleArt noreply at git.blender.org
Fri Aug 2 16:41:09 CEST 2019


Commit: 639d0ab291511959de9bc031deb9e41a0f937e90
Author: OmarSquircleArt
Date:   Fri Aug 2 16:39:29 2019 +0200
Branches: soc-2019-cycles-procedural
https://developer.blender.org/rB639d0ab291511959de9bc031deb9e41a0f937e90

Only assign Vector Math outputs if they are linked.

===================================================================

M	intern/cycles/render/nodes.cpp

===================================================================

diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp
index 1d798764d3c..1a61d3b9096 100644
--- a/intern/cycles/render/nodes.cpp
+++ b/intern/cycles/render/nodes.cpp
@@ -5779,8 +5779,8 @@ void VectorMathNode::compile(SVMCompiler &compiler)
       NODE_VECTOR_MATH, type, compiler.stack_assign(a_in), compiler.stack_assign(b_in));
   compiler.add_node(NODE_VECTOR_MATH,
                     scale_stack,
-                    compiler.stack_assign(value_out),
-                    compiler.stack_assign(vector_out));
+                    compiler.stack_assign_if_linked(value_out),
+                    compiler.stack_assign_if_linked(vector_out));
 }
 
 void VectorMathNode::compile(OSLCompiler &compiler)



More information about the Bf-blender-cvs mailing list