Tests: Fix Alembic regression test
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 17 Apr 2019 15:39:17 +0000 (17:39 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 17 Apr 2019 15:39:17 +0000 (17:39 +0200)
tests/python/bl_alembic_import_test.py

index ad7d2fd..fe69f20 100644 (file)
@@ -186,7 +186,7 @@ class SimpleImportTest(AbstractAlembicTest):
         # Check that the file loaded ok.
         bpy.context.scene.frame_set(6)
         scene = bpy.context.scene
-        mesh = plane.to_mesh(bpy.context.depsgraph, True, True, False)
+        mesh = plane.to_mesh(bpy.context.depsgraph, apply_modifiers=True, calc_undeformed=False)
         self.assertAlmostEqual(-1, mesh.vertices[0].co.x)
         self.assertAlmostEqual(-1, mesh.vertices[0].co.y)
         self.assertAlmostEqual(0.5905638933181763, mesh.vertices[0].co.z)
@@ -196,7 +196,7 @@ class SimpleImportTest(AbstractAlembicTest):
         bpy.data.cache_files[fname].filepath = relpath
         scene.frame_set(6)
 
-        mesh = plane.to_mesh(bpy.context.depsgraph, True, True, False)
+        mesh = plane.to_mesh(bpy.context.depsgraph, apply_modifiers=True, calc_undeformed=False)
         self.assertAlmostEqual(1, mesh.vertices[3].co.x)
         self.assertAlmostEqual(1, mesh.vertices[3].co.y)
         self.assertAlmostEqual(0.5905638933181763, mesh.vertices[3].co.z)