Automated testing: Add operators tests
Part of {T84999}
This patch adds test for
- `dissolve_limited`
- `dissolve_mode`
- `merge_normals`
Updated blend file:
{F13162744}
Reviewed By: zazizizou, mont29
Differential Revision: https://developer.blender.org/D15187
This commit is contained in:
@@ -115,6 +115,18 @@ def main():
|
||||
[OperatorSpecEditMode("dissolve_faces", {}, "VERT", {5, 34, 47, 49, 83, 91, 95})],
|
||||
),
|
||||
|
||||
# dissolve limited
|
||||
SpecMeshTest(
|
||||
"SphereDissolveLimited", "testSphereDissolveLimited", "expectedSphereDissolveLimited",
|
||||
[OperatorSpecEditMode("dissolve_limited", {"angle_limit": 0.610865}, "FACE", {20, 23, 26, 29, 32})],
|
||||
),
|
||||
|
||||
# dissolve mode
|
||||
SpecMeshTest(
|
||||
"PlaneDissolveMode", "testPlaneDissolveMode", "expectedPlaneDissolveMode",
|
||||
[OperatorSpecEditMode("dissolve_mode", {"use_verts": True}, "FACE", {0, 1, 2, 10, 12, 13})],
|
||||
),
|
||||
|
||||
# dissolve verts
|
||||
SpecMeshTest(
|
||||
"CubeDissolveVerts", "testCubeDissolveVerts", "expectedCubeDissolveVerts",
|
||||
@@ -332,6 +344,12 @@ def main():
|
||||
[OperatorSpecEditMode("mark_seam", {}, "EDGE", {1})],
|
||||
),
|
||||
|
||||
# merge normals
|
||||
SpecMeshTest(
|
||||
"CubeMergeNormals", "testCubeMergeNormals", "expectedCubeMergeNormals",
|
||||
[OperatorSpecEditMode("merge_normals", {}, "FACE", {3, 5})],
|
||||
),
|
||||
|
||||
# select all
|
||||
SpecMeshTest(
|
||||
"CircleSelectAll", "testCircleSelectAll", "expectedCircleSelectAll",
|
||||
|
||||
Reference in New Issue
Block a user