mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Regression test for armature deformation on lattice
This is a basic armature deformation test for #141535 using Lattices instead of Mesh as the target object type. Lattice deformation was briefly broken, which is caught by this test. The test adds the general-purpose `unit_test_compare` function to lattice object data. It only compares lattice point counts and positions for now, more data can be added later if necessary. The `MeshTest` class did not support lattice object types yet, so needed some changes. The Curves case was already supported, but only by full conversion to mesh data, without actually using the `unit_test_compare` function specific for curves geometry. This is unchanged, because applying constructive modifiers on curves does not work. If it were not for this limitation the test could do actual curves comparisons now. For lattice support the `MeshTest` class comparison function has been generalized to all supported object data types. It runs the appropriate `unit_test_compare` api function and validation where supported (only meshes at this point). Pull Request: https://projects.blender.org/blender/blender/pulls/141546
This commit is contained in:
parent
dcd8d4423d
commit
bb293e5677
6 changed files with 134 additions and 27 deletions
|
|
@ -377,6 +377,21 @@ def main():
|
|||
'use_vertex_groups': True,
|
||||
'vertex_group': "Mask",
|
||||
'use_multi_modifier': True})])]),
|
||||
SpecMeshTest("ArmatureLatticeEnvelope", "testLatticeArmatureEnvelope", "expectedLatticeArmatureEnvelope",
|
||||
[ModifierSpec('armature', 'ARMATURE',
|
||||
{'object': bpy.data.objects['testArmatureLatticeEnvelope'],
|
||||
'use_vertex_groups': False,
|
||||
'use_bone_envelopes': True})]),
|
||||
SpecMeshTest("ArmatureLatticeVGroup", "testLatticeArmatureVGroup", "expectedLatticeArmatureVGroup",
|
||||
[ModifierSpec('armature', 'ARMATURE',
|
||||
{'object': bpy.data.objects['testArmatureLatticeVGroup'],
|
||||
'use_vertex_groups': True,
|
||||
'use_bone_envelopes': False})]),
|
||||
SpecMeshTest("ArmatureLatticeNoVGroup", "testLatticeArmatureNoVGroup", "expectedLatticeArmatureNoVGroup",
|
||||
[ModifierSpec('armature', 'ARMATURE',
|
||||
{'object': bpy.data.objects['testArmatureLatticeNoVGroup'],
|
||||
'use_vertex_groups': True,
|
||||
'use_bone_envelopes': False})]),
|
||||
]
|
||||
|
||||
boolean_basename = "CubeBooleanDiffBMeshObject"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue