Blender Git Commit Log

Git Commits -> Revision 60d6333

Revision 60d6333 by Kévin Dietrich (master)
August 17, 2021, 19:38 (GMT)
Fix T82336: Cycles standard attributes missing in displacement shaders

Standard attributes are not added to the attributes requests when
shaders only have displacement. This is because nodes are only
considering the case when the surface socket is connected.

To support this, added `Shader.has_surface_link()` which checks for both
cases (`has_surface` and `has_displacement`) and replaces all checks on
`Shader.has_surface`.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D12240

Commit Details:

Full Hash: 60d6333b80472ca9eb2e1ab659da0fa2572d0a8b
Parent Commit: 88dc274
Lines Changed: +20, -12

3 Modified Paths:

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