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:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-03-29 12:01:55 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-03-29 12:01:55 +0300
commitd724363a39564f5d4d4c768f789467c95aacfcdf (patch)
tree22f2aee590a158d2b7fcd7a21aa32f4196bdac8e /source/blender/editors/animation/keyframing.c
parent99d4321feff632c0824ee7448e2997e8da2849b4 (diff)
Fix T62908: Missing update when inserting keyframe from dopesheet
Diffstat (limited to 'source/blender/editors/animation/keyframing.c')
-rw-r--r--source/blender/editors/animation/keyframing.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c
index 49695da2a17..4cea8ddbf74 100644
--- a/source/blender/editors/animation/keyframing.c
+++ b/source/blender/editors/animation/keyframing.c
@@ -2126,6 +2126,13 @@ static int insert_key_button_exec(bContext *C, wmOperator *op)
}
if (success) {
+ ID *id = ptr.id.data;
+ AnimData *adt = BKE_animdata_from_id(id);
+ if (adt->action != NULL) {
+ DEG_id_tag_update(&adt->action->id, ID_RECALC_ANIMATION_NO_FLUSH);
+ }
+ DEG_id_tag_update(id, ID_RECALC_ANIMATION_NO_FLUSH);
+
/* send updates */
UI_context_update_anim_flag(C);