Cleanup: format, unused argument
This commit is contained in:
parent
6cd30d5ff0
commit
7fa7722350
|
@ -488,7 +488,8 @@ void BKE_fcurve_delete_keys_all(struct FCurve *fcu);
|
|||
*/
|
||||
void BKE_fcurve_handles_recalc(struct FCurve *fcu);
|
||||
/**
|
||||
* Variant of #BKE_fcurve_handles_recalc() that allows calculating based on a different select flag.
|
||||
* Variant of #BKE_fcurve_handles_recalc() that allows calculating based on a different select
|
||||
* flag.
|
||||
*
|
||||
* \param handle_sel_flag: The flag (bezt.f1/2/3) value to use to determine selection.
|
||||
* Usually `SELECT`, but may want to use a different one at times
|
||||
|
|
|
@ -57,7 +57,7 @@ TEST(lib_id_main_sort, local_ids_1)
|
|||
test_lib_id_main_sort_check_order({id_a, id_b, id_c});
|
||||
}
|
||||
|
||||
static void change_lib(Main *bmain, ID *id, Library *lib)
|
||||
static void change_lib(Main * /*bmain*/, ID *id, Library *lib)
|
||||
{
|
||||
id->lib = lib;
|
||||
}
|
||||
|
|
|
@ -214,7 +214,14 @@ static void screen_user_menu_draw(const bContext *C, Menu *menu)
|
|||
wmOperatorType *ot = WM_operatortype_find(umi_op->op_idname, false);
|
||||
if (ot != NULL) {
|
||||
IDProperty *prop = umi_op->prop ? IDP_CopyProperty(umi_op->prop) : NULL;
|
||||
uiItemFullO_ptr(menu->layout, ot, CTX_IFACE_(ot->translation_context, ui_name), ICON_NONE, prop, umi_op->opcontext, 0, NULL);
|
||||
uiItemFullO_ptr(menu->layout,
|
||||
ot,
|
||||
CTX_IFACE_(ot->translation_context, ui_name),
|
||||
ICON_NONE,
|
||||
prop,
|
||||
umi_op->opcontext,
|
||||
0,
|
||||
NULL);
|
||||
is_empty = false;
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -2204,8 +2204,13 @@ static int nlaedit_apply_scale_exec(bContext *C, wmOperator *UNUSED(op))
|
|||
/* setup iterator, and iterate over all the keyframes in the action,
|
||||
* applying this scaling */
|
||||
ked.data = strip;
|
||||
ANIM_animchanneldata_keyframes_loop(
|
||||
&ked, ac.ads, strip->act, ALE_ACT, NULL, bezt_apply_nlamapping, BKE_fcurve_handles_recalc);
|
||||
ANIM_animchanneldata_keyframes_loop(&ked,
|
||||
ac.ads,
|
||||
strip->act,
|
||||
ALE_ACT,
|
||||
NULL,
|
||||
bezt_apply_nlamapping,
|
||||
BKE_fcurve_handles_recalc);
|
||||
|
||||
/* clear scale of strip now that it has been applied,
|
||||
* and recalculate the extents of the action now that it has been scaled
|
||||
|
|
Loading…
Reference in New Issue