Cycles: Fold Value and RGB node as well.
This way, connecting Value or RGB node to e.g. a Math node will still allow folding. Note: The same should be done for the ConvertNode, but I leave that for another day.
This commit is contained in:
@@ -617,7 +617,7 @@ void ShaderGraph::constant_fold()
|
||||
*/
|
||||
foreach(ShaderInput *input, output->links) {
|
||||
if(scheduled.find(input->parent) != scheduled.end()) {
|
||||
/* Node might be not yet optimized but scheduled already
|
||||
/* Node might not be optimized yet but scheduled already
|
||||
* by other dependencies. No need to re-schedule it.
|
||||
*/
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user