[Bf-blender-cvs] [5f5a22970b4] master: Tests: Fix Alembic regression test

Sergey Sharybin noreply at git.blender.org
Wed Apr 17 17:45:19 CEST 2019


Commit: 5f5a22970b4f7b3c42f73cf1f5a5dac4f32a14b0
Author: Sergey Sharybin
Date:   Wed Apr 17 17:39:17 2019 +0200
Branches: master
https://developer.blender.org/rB5f5a22970b4f7b3c42f73cf1f5a5dac4f32a14b0

Tests: Fix Alembic regression test

===================================================================

M	tests/python/bl_alembic_import_test.py

===================================================================

diff --git a/tests/python/bl_alembic_import_test.py b/tests/python/bl_alembic_import_test.py
index ad7d2fd398a..fe69f200c76 100644
--- a/tests/python/bl_alembic_import_test.py
+++ b/tests/python/bl_alembic_import_test.py
@@ -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)



More information about the Bf-blender-cvs mailing list