diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-26 17:07:32 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-26 17:08:17 +0300 |
commit | 2b55f621fe20389b73e8f913e8d867e31bfaacff (patch) | |
tree | 1864f0dff56ac661a5912e693febdaa96cf30661 /intern/cycles/render | |
parent | 1ff939f3f7d5cba72fddc5cc0b4a1bcf936bd64d (diff) |
Cleanup: fix compiler warnings
Diffstat (limited to 'intern/cycles/render')
-rw-r--r-- | intern/cycles/render/nodes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp index 69c1c06f846..bf8185d2b38 100644 --- a/intern/cycles/render/nodes.cpp +++ b/intern/cycles/render/nodes.cpp @@ -5674,8 +5674,8 @@ VectorMathNode::VectorMathNode() : ShaderNode(node_type) void VectorMathNode::constant_fold(const ConstantFolder &folder) { - float value; - float3 vector; + float value = 0.0f; + float3 vector = make_float3(0.0f, 0.0f, 0.0f); if (folder.all_inputs_constant()) { svm_vector_math(&value, &vector, type, vector1, vector2, scale); |