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
path: root/tests
diff options
context:
space:
mode:
authorHoward Trickey <howard.trickey@gmail.com>2019-04-04 15:50:17 +0300
committerHoward Trickey <howard.trickey@gmail.com>2019-04-04 15:50:17 +0300
commit3c6deb69f79afd3c3483b7a2eafb28a24a050712 (patch)
tree8e19f67b466e5d26cfd6910afe0079e8fad3b518 /tests
parent12fe0b79ce220409df76b35f8e301ec69b3bf8cd (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')
-rw-r--r--tests/python/bl_test.py6
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():