[Bf-blender-cvs] [3c6deb69f79] master: Fix ply import tests.

Howard Trickey noreply at git.blender.org
Thu Apr 4 14:56:36 CEST 2019


Commit: 3c6deb69f79afd3c3483b7a2eafb28a24a050712
Author: Howard Trickey
Date:   Thu Apr 4 08:50:17 2019 -0400
Branches: master
https://developer.blender.org/rB3c6deb69f79afd3c3483b7a2eafb28a24a050712

Fix ply import tests.

The function for clearing out objects in the startup file
needed updating for 2.8 collections api.

===================================================================

M	tests/python/bl_test.py

===================================================================

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():



More information about the Bf-blender-cvs mailing list