From 1f5106de610b115b87ab6121d7871d447ca48cd2 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Thu, 14 Dec 2017 11:46:49 -0200 Subject: Group collection viewport/render options and remove collection visibility Users can change the group collection visibility in the outliner when looking at groups. Regular collections on the other hand don't have any special visibility control, if you need a collection to be invisible during render, either don't link it into the view layer used for F12, or disable it. This includes: * Updated unittests - update your lib/tests/layers folder. * Subversion bump - branches be aware of that. Note: Although we are using eval_ctx to determine the visibility of a group collection when rendering, the depsgraph is still using the same depsgraph for the viewport and the render engine, so at the moment the render visibility is ignored. Following next is a workaround for this separately to tag the groups before and after rendering to tackle that. --- tests/python/view_layer/test_evaluation_selectability_f.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/python/view_layer/test_evaluation_selectability_f.py') diff --git a/tests/python/view_layer/test_evaluation_selectability_f.py b/tests/python/view_layer/test_evaluation_selectability_f.py index 1cffed9b0f4..54a070e4ae9 100644 --- a/tests/python/view_layer/test_evaluation_selectability_f.py +++ b/tests/python/view_layer/test_evaluation_selectability_f.py @@ -26,8 +26,8 @@ class UnitTesting(ViewLayerTesting): scene_collection.objects.link(cube) - self.assertFalse(layer_collection.hide) - self.assertFalse(layer_collection.hide_select) + self.assertTrue(layer_collection.enabled) + self.assertTrue(layer_collection.selectable) bpy.context.scene.update() # update depsgraph cube.select_set(action='SELECT') -- cgit v1.2.3