From 90b2fceca2f5116b0a8c3ef2a1a0ebec42dd3f57 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 18 Apr 2019 11:34:53 +0200 Subject: Cleanup: remove last bits of WITH_LEGACY_DEPSGRAPH CMake option. Legacy depsgraph has been removed from Blender since several months already... --- tests/python/CMakeLists.txt | 1 - tests/python/bl_alembic_import_test.py | 5 ----- 2 files changed, 6 deletions(-) (limited to 'tests') diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt index fdd2efb69d1..2d9fe8c4f37 100644 --- a/tests/python/CMakeLists.txt +++ b/tests/python/CMakeLists.txt @@ -624,7 +624,6 @@ if(WITH_ALEMBIC) --python ${CMAKE_CURRENT_LIST_DIR}/bl_alembic_import_test.py -- --testdir "${TEST_SRC_DIR}/alembic" - --with-legacy-depsgraph=${WITH_LEGACY_DEPSGRAPH} ) endif() diff --git a/tests/python/bl_alembic_import_test.py b/tests/python/bl_alembic_import_test.py index fe69f200c76..2cde6d57a7f 100644 --- a/tests/python/bl_alembic_import_test.py +++ b/tests/python/bl_alembic_import_test.py @@ -165,9 +165,6 @@ class SimpleImportTest(AbstractAlembicTest): bpy.data.cache_files[fname].filepath = relpath.replace('1.abc', '2.abc') bpy.context.scene.update() - if args.with_legacy_depsgraph: - bpy.context.scene.frame_set(10) - cube = bpy.context.depsgraph.id_eval_get(cube) x, y, z = cube.matrix_world.to_euler('XYZ') self.assertAlmostEqual(x, math.pi / 2, places=5) @@ -254,8 +251,6 @@ def main(): parser = argparse.ArgumentParser() parser.add_argument('--testdir', required=True, type=pathlib.Path) - parser.add_argument('--with-legacy-depsgraph', default=False, - type=lambda v: v in {'ON', 'YES', 'TRUE'}) args, remaining = parser.parse_known_args(argv) unittest.main(argv=remaining) -- cgit v1.2.3