diff options
Diffstat (limited to 'intern/cycles/render/nodes.cpp')
-rw-r--r-- | intern/cycles/render/nodes.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp index 6030c9f49c1..73c45665431 100644 --- a/intern/cycles/render/nodes.cpp +++ b/intern/cycles/render/nodes.cpp @@ -1246,8 +1246,10 @@ void WardBsdfNode::attributes(AttributeRequestSet *attributes) { ShaderInput *tangent_in = input("Tangent"); - if(!tangent_in->link) + if(!tangent_in->link) { attributes->add(ATTR_STD_TANGENT); + attributes->add(ATTR_STD_GENERATED); + } ShaderNode::attributes(attributes); } @@ -1595,8 +1597,10 @@ GeometryNode::GeometryNode() void GeometryNode::attributes(AttributeRequestSet *attributes) { - if(!output("Tangent")->links.empty()) + if(!output("Tangent")->links.empty()) { attributes->add(ATTR_STD_TANGENT); + attributes->add(ATTR_STD_GENERATED); + } ShaderNode::attributes(attributes); } |