While working on https://developer.blender.org/D14537 I don't deal with shaders yet. Turns out cycles was crashing because of a pointer always expected to be non null. This patch adds a nullptr check to prevent a potential crash.
Details
Details
Diff Detail
Diff Detail
- Repository
- rB Blender
Event Timeline
Comment Actions
Thanks, but it should use scene->default_surface instead of leaving tri_shader uninitialized.
Comment Actions
I wonder if there is a real gain of accessing *shader_ptr rather than shader operator[]. Is so, any reason the smooth buffer is not accessed through a pointer as well ?