[Bf-blender-cvs] [5b2705adf65] master: Fix T66353: VSE: Missing updates when moving strip with animation

Sergey Sharybin noreply at git.blender.org
Wed Jul 3 16:31:50 CEST 2019


Commit: 5b2705adf659455399cecf873f7548e5e293f521
Author: Sergey Sharybin
Date:   Wed Jul 3 16:30:34 2019 +0200
Branches: master
https://developer.blender.org/rB5b2705adf659455399cecf873f7548e5e293f521

Fix T66353: VSE: Missing updates when moving strip with animation

===================================================================

M	source/blender/blenkernel/intern/sequencer.c
M	source/blender/editors/transform/transform.c

===================================================================

diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c
index 971ca77ff3d..f2e0ee0c7fa 100644
--- a/source/blender/blenkernel/intern/sequencer.c
+++ b/source/blender/blenkernel/intern/sequencer.c
@@ -5203,6 +5203,8 @@ void BKE_sequencer_offset_animdata(Scene *scene, Sequence *seq, int ofs)
       }
     }
   }
+
+  DEG_id_tag_update(&scene->adt->action->id, ID_RECALC_ANIMATION);
 }
 
 void BKE_sequencer_dupe_animdata(Scene *scene, const char *name_src, const char *name_dst)
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 22900ee3787..7c4f9f1d95b 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -617,6 +617,8 @@ static void viewRedrawForce(const bContext *C, TransInfo *t)
   }
   else if (t->spacetype == SPACE_SEQ) {
     WM_event_add_notifier(C, NC_SCENE | ND_SEQUENCER, NULL);
+    /* Keyframes on strips has been moved, so make sure related editos are informed. */
+    WM_event_add_notifier(C, NC_ANIMATION, NULL);
   }
   else if (t->spacetype == SPACE_IMAGE) {
     if (t->options & CTX_MASK) {



More information about the Bf-blender-cvs mailing list