Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/blender/sync.cpp')
-rw-r--r--intern/cycles/blender/sync.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/intern/cycles/blender/sync.cpp b/intern/cycles/blender/sync.cpp
index 8af2ee7a435..bd6bfafedeb 100644
--- a/intern/cycles/blender/sync.cpp
+++ b/intern/cycles/blender/sync.cpp
@@ -745,6 +745,20 @@ void BlenderSync::sync_render_passes(BL::RenderLayer &b_rlay, BL::ViewLayer &b_v
}
}
+ /* Light Group passes. */
+ BL::ViewLayer::lightgroups_iterator b_lightgroup_iter;
+ for (b_view_layer.lightgroups.begin(b_lightgroup_iter);
+ b_lightgroup_iter != b_view_layer.lightgroups.end();
+ ++b_lightgroup_iter) {
+ BL::Lightgroup b_lightgroup(*b_lightgroup_iter);
+
+ string name = string_printf("Combined_%s", b_lightgroup.name().c_str());
+
+ b_engine.add_pass(name.c_str(), 3, "RGB", b_view_layer.name().c_str());
+ Pass *pass = pass_add(scene, PASS_COMBINED, name.c_str(), PassMode::NOISY);
+ pass->set_lightgroup(ustring(b_lightgroup.name()));
+ }
+
scene->film->set_pass_alpha_threshold(b_view_layer.pass_alpha_threshold());
}