diff options
author | Howard Trickey <howard.trickey@gmail.com> | 2019-04-04 15:50:17 +0300 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2019-04-04 15:50:17 +0300 |
commit | 3c6deb69f79afd3c3483b7a2eafb28a24a050712 (patch) | |
tree | 8e19f67b466e5d26cfd6910afe0079e8fad3b518 /tests/python/bl_test.py | |
parent | 12fe0b79ce220409df76b35f8e301ec69b3bf8cd (diff) |
Fix ply import tests.
The function for clearing out objects in the startup file
needed updating for 2.8 collections api.
Diffstat (limited to 'tests/python/bl_test.py')
-rw-r--r-- | tests/python/bl_test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/python/bl_test.py b/tests/python/bl_test.py index ceb5811438a..173d575a912 100644 --- a/tests/python/bl_test.py +++ b/tests/python/bl_test.py @@ -44,9 +44,9 @@ def replace_bpy_app_version(): def clear_startup_blend(): import bpy - for scene in bpy.data.scenes: - for obj in scene.objects: - scene.objects.unlink(obj) + for col in bpy.data.collections: + for obj in col.objects: + col.objects.unlink(obj) def blend_to_md5(): |