[Bf-blender-cvs] [1a3ac2f7500] master: Tests: Add basic testing for boolean modifiers.
Bastien Montagne
noreply at git.blender.org
Fri Jun 3 16:08:38 CEST 2022
Commit: 1a3ac2f75007a5cb1f663aad70f10835118a8b93
Author: Bastien Montagne
Date: Fri Jun 3 12:03:27 2022 +0200
Branches: master
https://developer.blender.org/rB1a3ac2f75007a5cb1f663aad70f10835118a8b93
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.
===================================================================
M tests/python/modifiers.py
===================================================================
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)
More information about the Bf-blender-cvs
mailing list