Cycles: add per layer collection indirectly on setting.

In the outliner, right click > view layer > set indirect only. This is
like clearing camera ray visibility on objects in the collection, and is
temporary until we have more general dynamic overrides.
This commit is contained in:
2018-07-25 12:26:09 +02:00
parent e6e8ee2922
commit 885cda65c9
10 changed files with 93 additions and 26 deletions

View File

@@ -361,12 +361,11 @@ Object *BlenderSync::sync_object(BL::Depsgraph& b_depsgraph,
}
#endif
/* TODO: hide objects not on render layer from camera rays. */
#if 0
if(!(layer_flag & view_layer.layer)) {
/* Clear camera visibility for indirect only objects. */
bool use_indirect_only = b_ob.indirect_only_get(b_view_layer);
if(use_indirect_only) {
visibility &= ~PATH_RAY_CAMERA;
}
#endif
/* Don't export completely invisible objects. */
if(visibility == 0) {