[Bf-blender-cvs] [22a8a3b2149] master: Apply patch D6620, Adde tests for Deform modifiers.

Howard Trickey noreply at git.blender.org
Sat Feb 29 20:07:37 CET 2020


Commit: 22a8a3b21497cdee2efa0d2dca53b34cef8b74c7
Author: Howard Trickey
Date:   Sat Feb 29 14:07:14 2020 -0500
Branches: master
https://developer.blender.org/rB22a8a3b21497cdee2efa0d2dca53b34cef8b74c7

Apply patch D6620, Adde tests for Deform modifiers.

This test is authored by Himanshi Kalra (calra).
It requires a new modifers.blend in the svn tests.

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

M	tests/python/modifiers.py

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

diff --git a/tests/python/modifiers.py b/tests/python/modifiers.py
index f2a42f15b43..697cddc9ba2 100644
--- a/tests/python/modifiers.py
+++ b/tests/python/modifiers.py
@@ -210,6 +210,33 @@ def main():
         ["testCubeLattice", "expectedCubeLattice",
          [ModifierSpec('lattice', 'LATTICE', {'object': bpy.data.objects["testLattice"]})]],
 
+        # ModifierSpec('laplacian_deform', 'LAPLACIANDEFORM', {}) Laplacian requires a more complex mesh
+
+        # Mesh Deform Modifier requires user input, so skip.
+
+        # mesh_test = MeshTest("testMonkeyDeform", "expectedMonkeyDeform",[
+        #        ModifierSpec('mesh_deform', 'MESH_DEFORM', {'object': bpy.data.objects["testDeformStructure"]}),
+        #        OperatorSpec('meshdeform_bind',{'modifier':'MeshDeform'},'FACE',{i for in range(500)})
+        # ] ,True)
+
+        ["testPlaneShrinkWrap", "expectedPlaneShrinkWrap",
+         [ModifierSpec('shrinkwrap', 'SHRINKWRAP', {'target': bpy.data.objects["testCubeWrap"], 'offset': 0.5})]],
+
+        ["testCylinderSimpleDeform", "expectedCylinderSimpleDeform",
+         [ModifierSpec('simple_deform', 'SIMPLE_DEFORM', {'angle': math.radians(180), 'deform_axis': 'Z'})]],
+
+        ["testPlaneSmooth", "expectedPlaneSmooth",
+         [ModifierSpec('smooth', 'SMOOTH', {'iterations': 11})]],
+
+        # Smooth corrective requires a complex mesh.
+
+        ["testBalloonLaplacianSmooth", "expectedBalloonLaplacianSmooth",
+         [ModifierSpec('laplaciansmooth', 'LAPLACIANSMOOTH', {'lambda_factor': 12, 'lambda_border': 12})]],
+
+        # Surface Deform and Warp requires user input, so skip.
+
+        # Wave - requires complex mesh, so skip.
+
     ]
 
     modifiers_test = ModifierTest(tests)



More information about the Bf-blender-cvs mailing list