[Bf-blender-cvs] [cce4271b31b] master: Add regression test for triangulate faces

Rateeb Riyasat noreply at git.blender.org
Wed Nov 16 18:35:03 CET 2022


Commit: cce4271b31b42e685d366c2590e5cbc77e23a4c4
Author: Rateeb Riyasat
Date:   Wed Nov 16 18:28:01 2022 +0100
Branches: master
https://developer.blender.org/rBcce4271b31b42e685d366c2590e5cbc77e23a4c4

Add regression test for triangulate faces

Basic test for `quads_convert_to_tris`

As the operator name in blender is different from the bpy name, the operator
name in blender was opted in terms of the blend file collection name as well
as the test name. This was done so that new developers in the future can
easier understand which operator this corresponds to. Although it might be
better to change this to the bpy name so as to be consistent with the rest
of the codebase.

Updated blend file `lib/tests/modeling/operators.blend` has been
committed as rBL63101.

Reviewed By: zazizizou, mont29

Differential Revision: https://developer.blender.org/D16072

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

M	tests/python/operators.py

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

diff --git a/tests/python/operators.py b/tests/python/operators.py
index fc2e8e39d4f..884910e159c 100644
--- a/tests/python/operators.py
+++ b/tests/python/operators.py
@@ -480,6 +480,12 @@ def main():
                                                     "use_center": True}, "VERT", {i for i in range(5)})],
         ),
 
+        # Triangulate Faces
+        SpecMeshTest(
+            "Triangulate Faces", "testCubeTriangulate", "expectedCubeTriangulate",
+            [OperatorSpecEditMode("quads_convert_to_tris", {}, "FACE", {i for i in range(6)})],
+        ),
+
         # Tris to Quads
         SpecMeshTest(
             "TrisToQuads", "testPlanesTrisToQuad", "expectedPlanesTrisToQuad",



More information about the Bf-blender-cvs mailing list