feat: add gp modifers to the object test
This commit is contained in:
parent
19c5ca0928
commit
6fddbb6f5e
@ -25,6 +25,13 @@ MOFIFIERS_TYPES = [
|
||||
'EXPLODE', 'FLUID', 'OCEAN', 'PARTICLE_INSTANCE',
|
||||
'SOFT_BODY', 'SURFACE']
|
||||
|
||||
GP_MODIFIERS_TYPE = [
|
||||
'GP_ARRAY', 'GP_BUILD', 'GP_MIRROR', 'GP_MULTIPLY',
|
||||
'GP_SIMPLIFY', 'GP_SUBDIV', 'GP_ARMATURE',
|
||||
'GP_HOOK', 'GP_LATTICE', 'GP_NOISE', 'GP_OFFSET',
|
||||
'GP_SMOOTH', 'GP_THICK', 'GP_TIME', 'GP_COLOR',
|
||||
'GP_OPACITY', 'GP_TEXTURE', 'GP_TINT']
|
||||
|
||||
CONSTRAINTS_TYPES = [
|
||||
'CAMERA_SOLVER', 'FOLLOW_TRACK', 'OBJECT_SOLVER', 'COPY_LOCATION',
|
||||
'COPY_ROTATION', 'COPY_SCALE', 'COPY_TRANSFORMS', 'LIMIT_DISTANCE',
|
||||
@ -35,6 +42,7 @@ CONSTRAINTS_TYPES = [
|
||||
|
||||
# temporary disabled 'SPLINE_IK' until its fixed
|
||||
|
||||
|
||||
def test_object(clear_blend):
|
||||
bpy.ops.mesh.primitive_cube_add(
|
||||
enter_editmode=False, align='WORLD', location=(0, 0, 0))
|
||||
@ -45,6 +53,9 @@ def test_object(clear_blend):
|
||||
for mod_type in MOFIFIERS_TYPES:
|
||||
datablock.modifiers.new(mod_type, mod_type)
|
||||
|
||||
for mod_type in GP_MODIFIERS_TYPE:
|
||||
datablock.grease_pencil_modifiers.new(mod_type,mod_type)
|
||||
|
||||
# Add constraints
|
||||
for const_type in CONSTRAINTS_TYPES:
|
||||
datablock.constraints.new(const_type)
|
||||
@ -54,7 +65,6 @@ def test_object(clear_blend):
|
||||
datablock.shape_key_add(name='shape')
|
||||
datablock.shape_key_add(name='shape2')
|
||||
|
||||
|
||||
implementation = BlObject()
|
||||
expected = implementation._dump(datablock)
|
||||
bpy.data.objects.remove(datablock)
|
||||
|
Loading…
x
Reference in New Issue
Block a user