Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2010-01-12 06:01:19 +0300
committerMatt Ebb <matt@mke3.net>2010-01-12 06:01:19 +0300
commit6f79716326d0daab8b83b9b9701920bf3146211b (patch)
tree2b7a728ea8011a90e9c4e54b520192ca39295d21 /source/blender/editors/interface/interface_anim.c
parentfd5657bd4fc8f8ea7f5d54ed7e92402b49a74870 (diff)
Fix [#19966] Graph Editor does not refresh after automatic keyframe insertion
Diffstat (limited to 'source/blender/editors/interface/interface_anim.c')
-rw-r--r--source/blender/editors/interface/interface_anim.c3
1 files changed, 2 insertions, 1 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);
}
}
}