Commit 83db613
authored
Add multioutput type check in
This fixes #2529
This issue stems from validation that the Shader node’s output type matches the Material node’s input type. It doesn't note a multioutput node as a matching type and returns an empty shaderNodes vector to the Graph Editor. It never creates a Material due to not receiving shaderNodes, leading to the empty Render View in the Editor. This then leads to a lack of renderable elements in the Viewer.
This change will check available activeOutputs for multiOutput nodes to ensure at least one active output is compatible with the input of the Material node (for example, surfaceshader to surfaceshader). It will maintain the previous behavior otherwise.getShaderNodes (#2760)1 parent adef8cd commit 83db613
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
24 | 36 | | |
25 | 37 | | |
26 | 38 | | |
| |||
0 commit comments