Fix [#19966] Graph Editor does not refresh after automatic keyframe insertion
This commit is contained in:
@@ -133,7 +133,7 @@ int ui_but_anim_expression_set(uiBut *but, const char *str)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ui_but_anim_autokey(uiBut *but, Scene *scene, float cfra)
|
||||
void ui_but_anim_autokey(bContext *C, uiBut *but, Scene *scene, float cfra)
|
||||
{
|
||||
ID *id;
|
||||
bAction *action;
|
||||
@@ -151,6 +151,7 @@ void ui_but_anim_autokey(uiBut *but, Scene *scene, float cfra)
|
||||
|
||||
fcu->flag &= ~FCURVE_SELECTED;
|
||||
insert_keyframe(id, action, ((fcu->grp)?(fcu->grp->name):(NULL)), fcu->rna_path, fcu->array_index, cfra, flag);
|
||||
WM_event_add_notifier(C, NC_ANIMATION|ND_KEYFRAME_EDIT, NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -323,7 +323,7 @@ static void ui_apply_autokey_undo(bContext *C, uiBut *but)
|
||||
}
|
||||
|
||||
/* try autokey */
|
||||
ui_but_anim_autokey(but, scene, scene->r.cfra);
|
||||
ui_but_anim_autokey(C, but, scene, scene->r.cfra);
|
||||
}
|
||||
|
||||
static void ui_apply_but_funcs_after(bContext *C)
|
||||
|
||||
@@ -481,7 +481,7 @@ void ui_but_anim_add_keyingset(struct bContext *C);
|
||||
void ui_but_anim_remove_keyingset(struct bContext *C);
|
||||
int ui_but_anim_expression_get(uiBut *but, char *str, int maxlen);
|
||||
int ui_but_anim_expression_set(uiBut *but, const char *str);
|
||||
void ui_but_anim_autokey(uiBut *but, struct Scene *scene, float cfra);
|
||||
void ui_but_anim_autokey(struct bContext *C, uiBut *but, struct Scene *scene, float cfra);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user