Cycles: Remove Bump Node from the graph, if Height input is not connected.

This way we can avoid building the split kernel with NODE_FEATURE_BUMP enabled, in case we don't need it.
This commit is contained in:
Thomas Dinges
2015-06-11 23:09:38 +02:00
parent 96d9801423
commit b666593775
4 changed files with 19 additions and 2 deletions

View File

@@ -652,7 +652,6 @@ public:
SHADER_NODE_CLASS(BumpNode)
bool has_spatial_varying() { return true; }
virtual int get_feature() {
/* TODO(sergey): Check for incoming links. */
return NODE_FEATURE_BUMP;
}