diff options
author | Damien Picard <dam.pic@free.fr> | 2022-06-16 12:25:27 +0300 |
---|---|---|
committer | Damien Picard <dam.pic@free.fr> | 2022-06-16 12:25:27 +0300 |
commit | 70f5863c3092c15329aa15c44b5c04cb9ba0557f (patch) | |
tree | 291b4d0e1fd240befed4c3c8d87927fe9b8b72ba /animation_animall.py | |
parent | 634f0c8c91879aa98cd485526b3742a86d348326 (diff) |
AnimAll: remove accidentally duplicated block
Diffstat (limited to 'animation_animall.py')
-rw-r--r-- | animation_animall.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/animation_animall.py b/animation_animall.py index fdbeff8d..a7d76f53 100644 --- a/animation_animall.py +++ b/animation_animall.py @@ -490,25 +490,6 @@ class ANIM_OT_delete_keyframe_animall(Operator): or attribute.domain == 'CORNER' and is_selected_vert_loop(data, e_i)): delete_key(data, f'attributes["{attribute.name}"].data[{e_i}].{attribute_key}') - if animall_properties.key_attribute: - if data.attributes.active is not None: - attribute = data.attributes.active - if attribute.data_type != 'STRING': - # Cannot animate string attributes? - if attribute.data_type in {'FLOAT', 'INT', 'BOOLEAN', 'INT8'}: - attribute_key = "value" - elif attribute.data_type in {'FLOAT_COLOR', 'BYTE_COLOR'}: - attribute_key = "color" - elif attribute.data_type in {'FLOAT_VECTOR', 'FLOAT2'}: - attribute_key = "vector" - - for e_i, _attribute_data in enumerate(attribute.data): - if (not animall_properties.key_selected - or attribute.domain == 'POINT' and data.vertices[e_i].select - or attribute.domain == 'EDGE' and data.edges[e_i].select - or attribute.domain == 'FACE' and data.polygons[e_i].select): - delete_key(data, f'attributes["{attribute.name}"].data[{e_i}].{attribute_key}') - elif obj.type == 'LATTICE': if animall_properties.key_shape: if obj.active_shape_key: |