Fix #29201: movie clip editor - right click crashes blender
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 8 Nov 2011 16:09:20 +0000 (16:09 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 8 Nov 2011 16:09:20 +0000 (16:09 +0000)
Just another not very smart check for "boundary" case of usecase.

source/blender/editors/transform/transform_conversions.c

index 0a6f49f7c9f3d6dd5ee58ffadba9448d2cb753d4..7ab1b24e9b3911937e39b5e9c61f35e8dd4afcb8 100644 (file)
@@ -5396,7 +5396,7 @@ static void createTransTrackingData(bContext *C, TransInfo *t)
        TransDataTracking *tdt;
        int framenr = sc->user.framenr;
 
-       if(clip && !BKE_movieclip_has_frame(clip, &sc->user)) {
+       if(!clip || !BKE_movieclip_has_frame(clip, &sc->user)) {
                t->total = 0;
                return;
        }