diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-06 07:07:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-06 07:07:57 +0300 |
commit | e97aed1e73e72174e08dc1ea152725007647a6cc (patch) | |
tree | b6d29a4879d6141b893e0b5d05d2846d7ac81c4e /source/blender/editors | |
parent | b15c658801e191e09a4e9e8933a9ac79a3805e1b (diff) |
Cleanup: remove unused 'eInsertKeyFlags' from delete API call
There is no need for an insertion flag in a delete function.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/animation/keyframing.c | 5 | ||||
-rw-r--r-- | source/blender/editors/animation/keyingsets.c | 2 | ||||
-rw-r--r-- | source/blender/editors/include/ED_keyframing.h | 3 |
3 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c index b48b96830d2..c8ef4fe2965 100644 --- a/source/blender/editors/animation/keyframing.c +++ b/source/blender/editors/animation/keyframing.c @@ -1576,8 +1576,7 @@ short delete_keyframe(Main *bmain, bAction *act, const char rna_path[], int array_index, - float cfra, - eInsertKeyFlags UNUSED(flag)) + float cfra) { AnimData *adt = BKE_animdata_from_id(id); PointerRNA id_ptr, ptr; @@ -2589,7 +2588,7 @@ static int delete_key_button_exec(bContext *C, wmOperator *op) index = -1; } - success = delete_keyframe(bmain, op->reports, ptr.owner_id, NULL, path, index, cfra, 0); + success = delete_keyframe(bmain, op->reports, ptr.owner_id, NULL, path, index, cfra); MEM_freeN(path); } else if (G.debug & G_DEBUG) { diff --git a/source/blender/editors/animation/keyingsets.c b/source/blender/editors/animation/keyingsets.c index d30828f824d..6b33c100a8f 100644 --- a/source/blender/editors/animation/keyingsets.c +++ b/source/blender/editors/animation/keyingsets.c @@ -1136,7 +1136,7 @@ int ANIM_apply_keyingset( kflag2); } else if (mode == MODIFYKEY_MODE_DELETE) { - success += delete_keyframe(bmain, reports, ksp->id, act, ksp->rna_path, i, cfra, kflag2); + success += delete_keyframe(bmain, reports, ksp->id, act, ksp->rna_path, i, cfra); } } diff --git a/source/blender/editors/include/ED_keyframing.h b/source/blender/editors/include/ED_keyframing.h index e4d86a026e3..7baaaf63d6a 100644 --- a/source/blender/editors/include/ED_keyframing.h +++ b/source/blender/editors/include/ED_keyframing.h @@ -150,8 +150,7 @@ short delete_keyframe(struct Main *bmain, struct bAction *act, const char rna_path[], int array_index, - float cfra, - eInsertKeyFlags flag); + float cfra); /* ************ Keying Sets ********************** */ |