From 3c6deb69f79afd3c3483b7a2eafb28a24a050712 Mon Sep 17 00:00:00 2001 From: Howard Trickey Date: Thu, 4 Apr 2019 08:50:17 -0400 Subject: [PATCH] Fix ply import tests. The function for clearing out objects in the startup file needed updating for 2.8 collections api. --- tests/python/bl_test.py | 6 +++--- 1 file 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():