Fix bug where syncing an object removed from the collection tree breaks.

This commit is contained in:
Dion Moult
2022-01-30 14:42:26 +11:00
parent bf9d46b506
commit c7428dd160
8 changed files with 71 additions and 43 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ def the_object_name_is_placed_in_the_collection_collection(name, collection):
def additionally_the_object_name_is_selected(name):
obj = bpy.context.scene.objects.get(name)
if not obj:
assert False, 'The object "{name}" could not be selected'
assert False, f'The object "{name}" could not be selected'
bpy.context.view_layer.objects.active = obj
obj.select_set(True)