Fixing alembic unittest after render layer purge
authorDalai Felinto <dfelinto@gmail.com>
Mon, 27 Nov 2017 16:52:15 +0000 (14:52 -0200)
committerDalai Felinto <dfelinto@gmail.com>
Mon, 27 Nov 2017 16:52:21 +0000 (14:52 -0200)
tests/python/bl_alembic_import_test.py

index 5062e8ff07334dfc4ef7f0f4b0f8afac5af2b4c7..e9499fb08f044d8f78ee4554531dcd872c8e5db5 100644 (file)
@@ -184,7 +184,7 @@ class SimpleImportTest(AbstractAlembicTest):
         # Check that the file loaded ok.
         bpy.context.scene.frame_set(6)
         scene = bpy.context.scene
-        layer = scene.render_layers[scene.active_layer]
+        layer = scene.view_layers[scene.active_layer]
         mesh = plane.to_mesh(scene, layer, True, 'RENDER')
         self.assertAlmostEqual(-1, mesh.vertices[0].co.x)
         self.assertAlmostEqual(-1, mesh.vertices[0].co.y)