diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2021-06-29 00:15:32 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2021-06-29 17:24:21 +0300 |
commit | e7fc15e2ef222b90e24594cdffe85894ff007e09 (patch) | |
tree | 296b660f3bc4d7d62e5a4b4bfe6850fc651044b8 /source/blender/gpencil_modifiers/intern | |
parent | d1e0059eac99654624edee2a2390a3e2fdc4c7cb (diff) |
Fix T70615: Cycles ignores BSDF inputs when nodes are optimized
When compiling BSDF nodes, we only assing stack space to the normal and
tangent inputs if they are linked. However, it could be that the
ConstantFolder removed the link, so checking if there is a link fails
to take this into account.
To fix this, added a flag to ShaderInput to keep track of whether a
constant was folded into the input, and use it as well to verify that
the socket is linked when assigning stack space.
Reviewed By: brecht
Maniphest Tasks: T70615
Differential Revision: https://developer.blender.org/D11731
Diffstat (limited to 'source/blender/gpencil_modifiers/intern')
0 files changed, 0 insertions, 0 deletions