[Bf-blender-cvs] [2e15b720894] master: Clip editor: Fix missing frame update on undo

Sergey Sharybin noreply at git.blender.org
Wed Jul 17 16:07:58 CEST 2019


Commit: 2e15b7208941f387530ffe3c07ad38c047c00abd
Author: Sergey Sharybin
Date:   Wed Jul 17 14:42:02 2019 +0200
Branches: master
https://developer.blender.org/rB2e15b7208941f387530ffe3c07ad38c047c00abd

Clip editor: Fix missing frame update on undo

It is possible that undo will change current scene frame and that was
not synchronizing current frame from scene to movie clip user.

Reported as a part of T66519.

Reviewers: brecht

Reviewed By: brecht

Maniphest Tasks: T66519

Differential Revision: https://developer.blender.org/D5280

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

M	source/blender/editors/space_clip/space_clip.c

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

diff --git a/source/blender/editors/space_clip/space_clip.c b/source/blender/editors/space_clip/space_clip.c
index c290e3a21d1..7e19ac255f0 100644
--- a/source/blender/editors/space_clip/space_clip.c
+++ b/source/blender/editors/space_clip/space_clip.c
@@ -420,6 +420,14 @@ static void clip_listener(wmWindow *UNUSED(win), ScrArea *sa, wmNotifier *wmn, S
         ED_area_tag_redraw(sa);
       }
       break;
+    case NC_WM:
+      switch (wmn->data) {
+        case ND_FILEREAD:
+        case ND_UNDO:
+          clip_area_sync_frame_from_scene(sa, scene);
+          break;
+      }
+      break;
   }
 }



More information about the Bf-blender-cvs mailing list