diff options
-rw-r--r-- | source/blender/editors/interface/interface_anim.c | 3 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 2 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_intern.h | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_anim.c b/source/blender/editors/interface/interface_anim.c index e35ffade342..1a747edce11 100644 --- a/source/blender/editors/interface/interface_anim.c +++ b/source/blender/editors/interface/interface_anim.c @@ -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); } } } diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 9fdb6a9fd94..7c0fa1fbc74 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -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) diff --git a/source/blender/editors/interface/interface_intern.h b/source/blender/editors/interface/interface_intern.h index aec48b5c7c7..c0dc54d2469 100644 --- a/source/blender/editors/interface/interface_intern.h +++ b/source/blender/editors/interface/interface_intern.h @@ -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 |