Blender Git Loki

Git Commits -> Revision d1a7441

Revision d1a7441 by Clément Foucault (master)
March 5, 2019, 16:24 (GMT)
GPUMaterial: Make Shader Output nodes inside nodegroups work

Works as expected and mimics Cycles behavior.

The patch is a bit hacky: In order to not touch the lower level function,
we search for the active output inside groups (recursively) and the first
valid one is then copied (or extracted if you want) in the previous parent
nodetree. So we recursively extract the output node back to the main
nodetree while preserving the links through the nodegroups interfaces.

This way everything works as expected in gpu tree evaluation and bsdf
tagging.

Fix T61869 Material Output Node Inside Node Group Renders Pink in Eevee

Commit Details:

Full Hash: d1a744173e73ddb86b3ad0f0fb65b89600ad8d55
Parent Commit: 81283b1
Lines Changed: +113, -1

1 Modified Path:

/source/blender/nodes/shader/node_shader_tree.c (+113, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021