diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-05-02 01:05:16 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-05-05 22:43:46 +0300 |
commit | dd8bfa0929f9f1ae940e7da0468fbdd6744e50bb (patch) | |
tree | b4bfab7872a9ce0ea32f25cfe46547e41d5de601 /intern/cycles/render/svm.cpp | |
parent | 2cfadecf97b8c7be5e24ea387c8aef34e9f0a1e9 (diff) |
Code refactor: reduce special node types, use generic constant folding.
Diffstat (limited to 'intern/cycles/render/svm.cpp')
-rw-r--r-- | intern/cycles/render/svm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/svm.cpp b/intern/cycles/render/svm.cpp index 56fb57e9667..350ef921bc1 100644 --- a/intern/cycles/render/svm.cpp +++ b/intern/cycles/render/svm.cpp @@ -365,7 +365,7 @@ uint SVMCompiler::attribute(AttributeStandard std) bool SVMCompiler::node_skip_input(ShaderNode * /*node*/, ShaderInput *input) { /* nasty exception .. */ - if(current_type == SHADER_TYPE_DISPLACEMENT && input->link && input->link->parent->name == ustring("bump")) + if(current_type == SHADER_TYPE_DISPLACEMENT && input->link && input->link->parent->special_type == SHADER_SPECIAL_TYPE_BUMP) return true; return false; |