Cycles: Shader node features are to be inherited from the base class

This commit is contained in:
Sergey Sharybin
2015-06-01 14:48:24 +05:00
parent 1fc6563917
commit 14251e8b45

View File

@@ -415,7 +415,9 @@ public:
void attributes(Shader *shader, AttributeRequestSet *attributes);
bool has_spatial_varying() { return true; }
virtual int get_feature() { return NODE_FEATURE_HAIR; }
virtual int get_feature() {
return ShaderNode::get_feature() | NODE_FEATURE_HAIR;
}
};
class ValueNode : public ShaderNode {