Merge remote-tracking branch 'origin/master' into blender2.8
[blender.git] / tests / python / bl_alembic_import_test.py
index d8cd64a1d569a688f2aed6619115d66eae189e76..2f3daaefd44c98a14f6695a6fc3e60328b112407 100644 (file)
@@ -63,7 +63,7 @@ class SimpleImportTest(AbstractAlembicTest):
 
         # 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.
@@ -95,7 +95,7 @@ class SimpleImportTest(AbstractAlembicTest):
 
         # 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