Cycles material preview no light
Closed, ResolvedPublic


Blender Version
Broken: 9ad2c0b6154
Worked: 9ad2c0b6154^

Short description of error
Material preview is black unless you use emission materials.

Exact steps for others to reproduce the error
Create a material with Cycles and look at the material preview tab.

Dalai Felinto (dfelinto) claimed this task.
Dalai Felinto (dfelinto) triaged this task as Confirmed priority.

Note to self (or @Sergey Sharybin (sergey) if he feels like):
Take a look at render_preview.c::preview_prepare_scene and see if depsgraph is flushing the visibility / disability properly.

Also: If I take the preview_cycles.blend file and change so that only one collection is enabled this collection preview type works. That's why I think the depsgraph is not being properly updated after set_preview_layer().