Camera tracking integration
[blender.git] / source / blender / editors / space_clip / space_clip.c
index a82d46896f13418281d3352cf281a575eff5ca14..122d875199cd8df08362d714728f75844d6d482c 100644 (file)
@@ -158,10 +158,6 @@ static SpaceLink *clip_duplicate(SpaceLink *sl)
 
 static void clip_listener(ScrArea *sa, wmNotifier *wmn)
 {
-       SpaceClip *sc= sa->spacedata.first;
-
-       (void)sc;
-
        /* context changes */
        switch(wmn->category) {
                case NC_SCENE:
@@ -202,6 +198,11 @@ static void clip_listener(ScrArea *sa, wmNotifier *wmn)
                                        break;
                        }
                        break;
+                case NC_SCREEN:
+                       if(wmn->data==ND_ANIMPLAY) {
+                               ED_area_tag_redraw(sa);
+                       }
+                       break;
                case NC_SPACE:
                        if(wmn->data==ND_SPACE_CLIP) {
                                clip_scopes_tag_refresh(sa);