diff options
author | Bastien Montagne <bastien@blender.org> | 2022-06-03 13:03:27 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-06-03 17:07:05 +0300 |
commit | 1a3ac2f75007a5cb1f663aad70f10835118a8b93 (patch) | |
tree | 6e615750c489af2aff7929d59b9bfdb19e70d3c9 /tests/python | |
parent | 5d9ebea15d18e16f05067f85a44142fd1f823a42 (diff) |
Tests: Add basic testing for boolean modifiers.
Test basic Difference operation with both a single Objetc and a
collection of three objects as operands, using BMesh (aka 'FAST') mode.
Diffstat (limited to 'tests/python')
-rw-r--r-- | tests/python/modifiers.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/python/modifiers.py b/tests/python/modifiers.py index 827cc80393a..333633a4c4d 100644 --- a/tests/python/modifiers.py +++ b/tests/python/modifiers.py @@ -213,7 +213,6 @@ def main(): SpecMeshTest("MergedNoneWeld", "testMergedNoneWeld", "expectedMergedNoneWeld", [ModifierSpec("weld", 'WELD', {"merge_threshold": 0.019})]), - ############################################# # One 'Deform' modifier on primitive meshes ############################################# @@ -325,6 +324,18 @@ def main(): ] + boolean_basename = "CubeBooleanDiffBMeshObject" + tests.append(SpecMeshTest("BooleandDiffBMeshObject", "test" + boolean_basename, "expected" + boolean_basename, + [ModifierSpec("boolean", 'BOOLEAN', + {"solver": 'FAST', "operation": 'DIFFERENCE', "operand_type": 'OBJECT', + "object": bpy.data.objects["test" + boolean_basename + "Operand"]})])) + boolean_basename = "CubeBooleanDiffBMeshCollection" + tests.append(SpecMeshTest("BooleandDiffBMeshCollection", "test" + boolean_basename, "expected" + boolean_basename, + [ModifierSpec("boolean", 'BOOLEAN', + {"solver": 'FAST', "operation": 'DIFFERENCE', "operand_type": 'COLLECTION', + "collection": bpy.data.collections["test" + boolean_basename + "Operands"]})])) + + modifiers_test = RunTest(tests) command = list(sys.argv) |