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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2016-05-08 01:41:01 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2016-05-08 21:21:04 +0300
commita815e1021162b4c0f7c622e180f6283d8cf05e07 (patch)
tree9b7fd29428fb95137e06eda193a15f47aad3de83 /intern/cycles/render/graph.cpp
parentdfe9aa25c366484076a93bf52b65d0f434c72c27 (diff)
Code cleanup: use special type instead of node names.
Diffstat (limited to 'intern/cycles/render/graph.cpp')
-rw-r--r--intern/cycles/render/graph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/graph.cpp b/intern/cycles/render/graph.cpp
index b23fd2a7a8b..920f5c7b50d 100644
--- a/intern/cycles/render/graph.cpp
+++ b/intern/cycles/render/graph.cpp
@@ -910,7 +910,7 @@ void ShaderGraph::transform_multi_closure(ShaderNode *node, ShaderOutput *weight
* avoid building a closure tree and then flattening it, and instead write it
* directly to an array */
- if(node->name == ustring("mix_closure") || node->name == ustring("add_closure")) {
+ if(node->special_type == SHADER_SPECIAL_TYPE_COMBINE_CLOSURE) {
ShaderInput *fin = node->input("Fac");
ShaderInput *cl1in = node->input("Closure1");
ShaderInput *cl2in = node->input("Closure2");