UI: Removal of GRAPH_OT_keys_to_samples Confirmation #120074
|
@ -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) */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue