Cycles: Add fundamentals to test constant folding
[blender.git] / intern / cycles / render / constant_fold.cpp
index 1fee6b2c0813ac92b89d8d95099991691c17f63a..13e12229e856bf94798b050e77120797c1ad3b9c 100644 (file)
@@ -18,6 +18,7 @@
 #include "graph.h"
 
 #include "util_foreach.h"
+#include "util_logging.h"
 
 CCL_NAMESPACE_BEGIN
 
@@ -39,6 +40,7 @@ bool ConstantFolder::all_inputs_constant() const
 
 void ConstantFolder::make_constant(float value) const
 {
+       VLOG(1) << "Replacing " << node->name << " with constant " << value << ".";
        foreach(ShaderInput *sock, output->links) {
                sock->set(value);
        }