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:
authorBastien Montagne <montagne29@wanadoo.fr>2018-11-06 19:20:49 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-11-06 19:20:49 +0300
commit7b38df41ae8b2903eb65dc72e506ba0b0c58453d (patch)
tree61b841a5f634a1b6806688c1fb4b563b92b7e99a /release/scripts/startup/bl_operators/clip.py
parentaa9912ec045e3209bc87c48801fd955c59bd0908 (diff)
Fix/cleanup RNA viewlayer API.
RNA's ViewLayer would present 'first level' of layer collection as a list (collection property), when it is actually now only a single item, same as the scene's master collection. Note: did not try to update view_layer python tests, those are already fully broken for quiet some time I guess (they still assume view_layer.collections to be mutable e.g.)...
Diffstat (limited to 'release/scripts/startup/bl_operators/clip.py')
-rw-r--r--release/scripts/startup/bl_operators/clip.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/clip.py b/release/scripts/startup/bl_operators/clip.py
index dfdfa845114..96aed07ecea 100644
--- a/release/scripts/startup/bl_operators/clip.py
+++ b/release/scripts/startup/bl_operators/clip.py
@@ -673,13 +673,13 @@ class CLIP_OT_setup_tracking_scene(Operator):
# rendersettings
setup_collection_recursively(
- vlayers["Foreground"].collections[0].children,
+ vlayers["Foreground"].layer_collection.children,
"background",
"holdout",
)
setup_collection_recursively(
- vlayers["Background"].collections[0].children,
+ vlayers["Background"].layer_collection.children,
"foreground",
"indirect_only",
)