removed 3D view listener for changing the background image frame.
[blender-staging.git] / source / blender / editors / space_view3d / view3d_draw.c
index 914344647bd333ff93de9267e014c4e1635528a5..529b100c1d44c25b58696a85b6010aceb36cf385 100644 (file)
@@ -1317,9 +1317,12 @@ static void draw_bgpic(Scene *scene, ARegion *ar, View3D *v3d)
        if(bgpic==NULL) return;
        
        ima= bgpic->ima;
-       
-       if(ima)
+
+       if(ima) {
+               /* notifier can also call this however screen_ops.c */
+               BKE_image_user_calc_frame(&bgpic->iuser, CFRA, 0);
                ibuf= BKE_image_get_ibuf(ima, &bgpic->iuser);
+       }
        if(ibuf==NULL || (ibuf->rect==NULL && ibuf->rect_float==NULL) ) 
                return;
        if(ibuf->channels!=4)