Fix ply import tests.

The function for clearing out objects in the startup file
needed updating for 2.8 collections api.
This commit is contained in:
Howard Trickey 2019-04-04 08:50:17 -04:00
parent 12fe0b79ce
commit 3c6deb69f7
1 changed files with 3 additions and 3 deletions

View File

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