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:
@@ -1576,8 +1576,7 @@ short delete_keyframe(Main *bmain,
|
|||||||
bAction *act,
|
bAction *act,
|
||||||
const char rna_path[],
|
const char rna_path[],
|
||||||
int array_index,
|
int array_index,
|
||||||
float cfra,
|
float cfra)
|
||||||
eInsertKeyFlags UNUSED(flag))
|
|
||||||
{
|
{
|
||||||
AnimData *adt = BKE_animdata_from_id(id);
|
AnimData *adt = BKE_animdata_from_id(id);
|
||||||
PointerRNA id_ptr, ptr;
|
PointerRNA id_ptr, ptr;
|
||||||
@@ -2589,7 +2588,7 @@ static int delete_key_button_exec(bContext *C, wmOperator *op)
|
|||||||
index = -1;
|
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);
|
MEM_freeN(path);
|
||||||
}
|
}
|
||||||
else if (G.debug & G_DEBUG) {
|
else if (G.debug & G_DEBUG) {
|
||||||
|
|||||||
@@ -1136,7 +1136,7 @@ int ANIM_apply_keyingset(
|
|||||||
kflag2);
|
kflag2);
|
||||||
}
|
}
|
||||||
else if (mode == MODIFYKEY_MODE_DELETE) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -150,8 +150,7 @@ short delete_keyframe(struct Main *bmain,
|
|||||||
struct bAction *act,
|
struct bAction *act,
|
||||||
const char rna_path[],
|
const char rna_path[],
|
||||||
int array_index,
|
int array_index,
|
||||||
float cfra,
|
float cfra);
|
||||||
eInsertKeyFlags flag);
|
|
||||||
|
|
||||||
/* ************ Keying Sets ********************** */
|
/* ************ Keying Sets ********************** */
|
||||||
|
|
||||||
|
|||||||
@@ -501,8 +501,7 @@ PyObject *pyrna_struct_keyframe_delete(BPy_StructRNA *self, PyObject *args, PyOb
|
|||||||
|
|
||||||
BKE_reports_init(&reports, RPT_STORE);
|
BKE_reports_init(&reports, RPT_STORE);
|
||||||
|
|
||||||
result = delete_keyframe(
|
result = delete_keyframe(G.main, &reports, self->ptr.owner_id, NULL, path_full, index, cfra);
|
||||||
G.main, &reports, (ID *)self->ptr.owner_id, NULL, path_full, index, cfra, 0);
|
|
||||||
MEM_freeN((void *)path_full);
|
MEM_freeN((void *)path_full);
|
||||||
|
|
||||||
if (BPy_reports_to_error(&reports, PyExc_RuntimeError, true) == -1) {
|
if (BPy_reports_to_error(&reports, PyExc_RuntimeError, true) == -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user