== Sequencer ==
[blender-staging.git] / source / blender / editors / space_image / image_buttons.c
index 66e844e67a8f689bc694b1d83e9df424ea56aad0..4011f038be8fcf1d33a54e6f87437760314b9297 100644 (file)
@@ -113,7 +113,7 @@ static void image_info(Scene *scene, ImageUser *iuser, Image *ima, ImBuf *ibuf,
                if(ima->source==IMA_SRC_MOVIE) {
                        ofs+= sprintf(str, "Movie");
                        if(ima->anim)
-                               ofs+= sprintf(str+ofs, "%d frs", IMB_anim_get_duration(ima->anim));
+                               ofs+= sprintf(str+ofs, "%d frs", IMB_anim_get_duration(ima->anim, IMB_TC_RECORD_RUN));
                }
                else
                        ofs+= sprintf(str, "Image");
@@ -428,7 +428,7 @@ static void set_frames_cb(bContext *C, void *ima_v, void *iuser_v)
        ImageUser *iuser= iuser_v;
        
        if(ima->anim) {
-               iuser->frames = IMB_anim_get_duration(ima->anim);
+               iuser->frames = IMB_anim_get_duration(ima->anim, IMB_TC_RECORD_RUN);
                BKE_image_user_calc_frame(iuser, scene->r.cfra, 0);
        }
 }