Fix T99104: EEVEE: Regression: Crash when using Light Output in Materials
Using Light output is supported in Cycles. This patch adds support for it and remove the crash in `ntree_shader_weight_tree_invert()` by treating it as any other outputs. Candidate for 3.2.1 corrective release.
This commit is contained in:
@@ -712,6 +712,7 @@ static void ntree_shader_weight_tree_invert(bNodeTree *ntree, bNode *output_node
|
||||
|
||||
switch (node->type) {
|
||||
case SH_NODE_SHADERTORGB:
|
||||
case SH_NODE_OUTPUT_LIGHT:
|
||||
case SH_NODE_OUTPUT_WORLD:
|
||||
case SH_NODE_OUTPUT_MATERIAL: {
|
||||
/* Start the tree with full weight. */
|
||||
@@ -810,6 +811,7 @@ static void ntree_shader_weight_tree_invert(bNodeTree *ntree, bNode *output_node
|
||||
|
||||
switch (node->type) {
|
||||
case SH_NODE_SHADERTORGB:
|
||||
case SH_NODE_OUTPUT_LIGHT:
|
||||
case SH_NODE_OUTPUT_WORLD:
|
||||
case SH_NODE_OUTPUT_MATERIAL:
|
||||
case SH_NODE_ADD_SHADER: {
|
||||
|
||||
Reference in New Issue
Block a user