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)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to