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:
authorDalai Felinto <dfelinto@gmail.com>2018-08-21 17:52:26 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-08-21 17:54:54 +0300
commite9182a0f5d0b1700e4bcdc11d0110ba7e9b97a0c (patch)
tree0f124c854cd51bce70b0c71e6f04e38f805c4fa3 /release/scripts/startup
parent17c245e2945968e073731f1799c093b3d807f0a3 (diff)
Fixup for Setup Tracking Scene
Issues introduced on: 17c245e2945968e073731f1799c093b3d807f0a3 (own error for the records).
Diffstat (limited to 'release/scripts/startup')
-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 42e8b7a94f1..c9499388449 100644
--- a/release/scripts/startup/bl_operators/clip.py
+++ b/release/scripts/startup/bl_operators/clip.py
@@ -641,7 +641,7 @@ class CLIP_OT_setup_tracking_scene(Operator):
master_collection = context.scene.collection
collection = bpy.data.collections.get(collection_name)
- if collection.library:
+ if collection and collection.library:
# We need a local collection instead.
collection = None
@@ -965,7 +965,7 @@ class CLIP_OT_setup_tracking_scene(Operator):
# And set everything on background layer to shadow catcher.
if hasattr(scene, "cycles"):
- self.setup_shadow_catcher_collection(bg_coll)
+ setup_shadow_catcher_objects(bg_coll)
def execute(self, context):
scene = context.scene