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:
authorThomas Dinges <blender@dingto.org>2015-12-22 16:02:57 +0300
committerThomas Dinges <blender@dingto.org>2015-12-22 16:02:57 +0300
commit887829e3d89f1adb01326d15241e2270fe3d71ce (patch)
treeecb9ca94fa893d84d5531c12ec548a8b85cf3e3d
parent377b52be2ea5fad2e4438415226ae062c04cf8d8 (diff)
Cleanup: Remove comments, now that we have the dedicated constant fold functions, it's obvious.
-rw-r--r--intern/cycles/render/nodes.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp
index 678f7b31334..74a0d207e81 100644
--- a/intern/cycles/render/nodes.cpp
+++ b/intern/cycles/render/nodes.cpp
@@ -4099,7 +4099,6 @@ bool MathNode::constant_fold(ShaderOutput *socket, float3 *optimized_value)
ShaderInput *value2_in = input("Value2");
if(socket == output("Value")) {
- /* Optimize math node without links to a single value. */
if(value1_in->link == NULL && value2_in->link == NULL) {
optimized_value->x = svm_math((NodeMath)type_enum[type],
value1_in->value.x,
@@ -4179,7 +4178,6 @@ bool VectorMathNode::constant_fold(ShaderOutput *socket, float3 *optimized_value
float value;
float3 vector;
- /* Optimize vector math node without links to a single value node. */
if(vector1_in->link == NULL && vector2_in->link == NULL) {
svm_vector_math(&value,
&vector,