Merging r45748 through r45791 from trunk into soc-2011-tomato
[blender.git] / source / blender / editors / transform / transform_conversions.c
index ba720ea8087924bb117cbdea2a187da2980741e4..7755b35b2b2db7aa152cb39c13e001290291a52d 100644 (file)
@@ -5749,10 +5749,13 @@ static void createTransTrackingData(bContext *C, TransInfo *t)
        ARegion *ar = CTX_wm_region(C);
        SpaceClip *sc = CTX_wm_space_clip(C);
        MovieClip *clip = ED_space_clip(sc);
+       int width, height;
 
        t->total = 0;
 
-       if (!clip || !BKE_movieclip_has_frame(clip, &sc->user))
+       BKE_movieclip_get_size(clip, &sc->user, &width, &height);
+
+       if (!clip || width == 0 || height == 0)
                return;
 
        if (!ELEM(t->mode, TFM_RESIZE, TFM_TRANSLATION))