svn merge ^/trunk/blender -r43918:43934
[blender.git] / source / blender / editors / space_image / space_image.c
index 3d97972c82951266f36c643907b73d4e78e9d4bf..4d74322fc56d379c0eafd1796dfffb71ff936359 100644 (file)
@@ -580,7 +580,7 @@ static void image_refresh(const bContext *C, ScrArea *UNUSED(sa))
        ima= ED_space_image(sima);
 
        if(sima->iuser.flag & IMA_ANIM_ALWAYS)
-               BKE_image_user_calc_frame(&sima->iuser, CTX_data_scene(C)->r.cfra, 0);
+               BKE_image_user_calc_frame(&sima->iuser, scene->r.cfra, 0);
        
        /* check if we have to set the image from the editmesh */
        if(ima && (ima->source==IMA_SRC_VIEWER || sima->pin));