UI: Removal of GRAPH_OT_keys_to_samples Confirmation #120074

Merged
Harley Acheson merged 1 commits from Harley/blender:GRAPH_OT_keys_to_samplesConfirmation into main 2024-04-10 00:45:56 +02:00
1 changed files with 0 additions and 16 deletions

View File

@ -981,20 +981,6 @@ static int graphkeys_keys_to_samples_exec(bContext *C, wmOperator * /*op*/)
return OPERATOR_FINISHED;
}
static int graphkeys_keys_to_samples_invoke(bContext *C, wmOperator *op, const wmEvent * /*event*/)
{
if (RNA_boolean_get(op->ptr, "confirm")) {
return WM_operator_confirm_ex(C,
op,
IFACE_("Convert selected keys to samples?"),
nullptr,
IFACE_("Convert"),
ALERT_ICON_NONE,
false);
}
return graphkeys_keys_to_samples_exec(C, op);
}
void GRAPH_OT_keys_to_samples(wmOperatorType *ot)
{
/* Identifiers */
@ -1004,13 +990,11 @@ void GRAPH_OT_keys_to_samples(wmOperatorType *ot)
"Convert selected channels to an uneditable set of samples to save storage space";
/* API callbacks */
ot->invoke = graphkeys_keys_to_samples_invoke;
ot->exec = graphkeys_keys_to_samples_exec;
ot->poll = graphop_selected_fcurve_poll;
/* Flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
WM_operator_properties_confirm_or_exec(ot);
/* TODO: add props for start/end frames (Joshua Leung 2009) */
}