Blender Git Commit Log

Git Commits -> Revision e7fc15e

Revision e7fc15e by Kévin Dietrich (master)
June 29, 2021, 14:24 (GMT)
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

Commit Details:

Full Hash: e7fc15e2ef222b90e24594cdffe85894ff007e09
Parent Commit: d1e0059
Lines Changed: +12, -2

3 Modified Paths:

/intern/cycles/render/constant_fold.cpp (+2, -0) (Diff)
/intern/cycles/render/graph.h (+9, -1) (Diff)
/intern/cycles/render/svm.cpp (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021