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

@@ -3934,6 +3934,8 @@ BumpNode::BumpNode()
{
invert = false;
special_type = SHADER_SPECIAL_TYPE_BUMP;
/* this input is used by the user, but after graph transform it is no longer
* used and moved to sampler center/x/y instead */
add_input("Height", SHADER_SOCKET_FLOAT);