svn merge ^/trunk/blender -r43751:43819, need to look into changes made to editmesh_l...
[blender-staging.git] / source / blender / editors / transform / transform_conversions.c
index eea9c13c1ac52d2524bd166f06756de93fa490a2..1a075b37cca12444bcfe81694d4f3079035fb05e 100644 (file)
@@ -5696,10 +5696,13 @@ static void createTransTrackingData(bContext *C, TransInfo *t)
        SpaceClip *sc = CTX_wm_space_clip(C);
        MovieClip *clip = ED_space_clip(sc);
 
-       if(!clip || !BKE_movieclip_has_frame(clip, &sc->user)) {
-               t->total = 0;
+       t->total = 0;
+
+       if(!clip || !BKE_movieclip_has_frame(clip, &sc->user))
+               return;
+
+       if(!ELEM(t->mode, TFM_RESIZE, TFM_TRANSLATION))
                return;
-       }
 
        if(ar->regiontype == RGN_TYPE_PREVIEW) {
                /* transformation was called from graph editor */