Cleanup: Remove unused parameter
This commit is contained in:
@@ -1005,7 +1005,7 @@ static bool closure_node_filter(const bNode *node)
|
||||
}
|
||||
|
||||
/* Shader to rgba needs their associated closure duplicated and the weight tree generated for. */
|
||||
static void ntree_shader_shader_to_rgba_branch(bNodeTree *ntree, bNode *output_node)
|
||||
static void ntree_shader_shader_to_rgba_branches(bNodeTree *ntree)
|
||||
{
|
||||
Vector<bNode *> shader_to_rgba_nodes;
|
||||
LISTBASE_FOREACH (bNode *, node, &ntree->nodes) {
|
||||
@@ -1197,7 +1197,7 @@ void ntreeGPUMaterialNodes(bNodeTree *localtree, GPUMaterial *mat)
|
||||
if (valid_tree) {
|
||||
ntree_shader_pruned_unused(localtree, output);
|
||||
if (output != nullptr) {
|
||||
ntree_shader_shader_to_rgba_branch(localtree, output);
|
||||
ntree_shader_shader_to_rgba_branches(localtree);
|
||||
ntree_shader_weight_tree_invert(localtree, output);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user