Blender Git Loki

Git Commits -> Revision dc2daf7

Revision dc2daf7 by Sergey Sharybin (master)
June 4, 2014, 20:33 (GMT)
Fix T40482: Cycles matlib file crashes

it's possible that runtime optimizer would call get_attribute
with NULL renderstate. As per documentation, it's valid to
return false in that cases and in worst case we'll just miss
some possible optimization.

Supporting such cases would require some bigger changes to
Cycles since attributes are only set to up for the kernel
after shader compilation.

Thanks Brecht for review!

Commit Details:

Full Hash: dc2daf7a6786110a77cebc5ad8ea7a118d156d61
Parent Commit: 9b3efa9
Lines Changed: +3, -0

1 Modified Path:

/intern/cycles/kernel/osl/osl_services.cpp (+3, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021