Fixup for Setup Tracking Scene

Issues introduced on: 17c245e294
(own error for the records).
This commit is contained in:
Dalai Felinto 2018-08-21 11:52:26 -03:00
parent 17c245e294
commit e9182a0f5d
Notes: blender-bot 2023-02-14 10:21:10 +01:00
Referenced by commit 08151b52a2, Fix error in clip.setup_tracking_scene with cycles
1 changed files with 2 additions and 2 deletions

View File

@ -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