diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-08-20 15:48:33 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-08-20 15:49:44 +0300 |
commit | 67dcad4011bd78be8143d301dfbb22ca2b0a0efe (patch) | |
tree | e35a110f2d31c57aa7a23164c36da1442834452e /release | |
parent | 8e02b024c02db4580bc04c143a31dc3dff869385 (diff) |
Fix T49119: Batch-Generate Previews operator fails.
previews render utils needed to be updated slightly against new behavior of maindata.remove.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/bl_previews_utils/bl_previews_render.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/bl_previews_utils/bl_previews_render.py b/release/scripts/modules/bl_previews_utils/bl_previews_render.py index 6c29223cf55..f7317184bd2 100644 --- a/release/scripts/modules/bl_previews_utils/bl_previews_render.py +++ b/release/scripts/modules/bl_previews_utils/bl_previews_render.py @@ -169,7 +169,7 @@ def do_previews(do_objects, do_groups, do_scenes, do_data_intern): scene.objects.unlink(bpy.data.objects[render_context.camera, None]) if render_context.lamp: scene.objects.unlink(bpy.data.objects[render_context.lamp, None]) - bpy.data.scenes.remove(scene) + bpy.data.scenes.remove(scene, do_unlink=True) scene = None else: rna_backup_restore(scene, render_context.backup_scene) |