Cleanup: remove unused 'eInsertKeyFlags' from delete API call

There is no need for an insertion flag in a delete function.
This commit is contained in:
2020-03-06 15:07:57 +11:00
parent b15c658801
commit e97aed1e73
4 changed files with 5 additions and 8 deletions

View File

@@ -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) {