Merge commit 'master@6ed15c5a41130b55cb57a43a8a9470a91d38c3d5' into blender2.8
[blender.git] / tests / python / bl_alembic_import_test.py
index ef5ae37233372fd4db183c92cee9a8d52212047f..854a5846361d3fbd088d9ee9341188216a230e3d 100644 (file)
@@ -51,7 +51,7 @@ class SimpleImportTest(unittest.TestCase):
 
         # The objects should be linked to scene_collection in Blender 2.8,
         # and to scene in Blender 2.7x.
-        objects = bpy.context.scene.objects
+        objects = bpy.context.scene_collection.objects
         self.assertEqual(13, len(objects))
 
         # Test the hierarchy.
@@ -83,7 +83,7 @@ class SimpleImportTest(unittest.TestCase):
 
         # All cubes should be selected, but the sphere shouldn't be.
         for ob in bpy.data.objects:
-            self.assertEqual('Cube' in ob.name, ob.select)
+            self.assertEqual('Cube' in ob.name, ob.select_get())
 
     def test_change_path_constraint(self):
         import math