diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-11-08 20:09:20 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-11-08 20:09:20 +0400 |
commit | 58f3503e904675c77855c66a46f92cfb47cde952 (patch) | |
tree | 294ffde205f56cb74c5188c8181e14470272d694 /source/blender | |
parent | bf7b3efb1811906b0e499f5e0992aa20cde3e750 (diff) |
Fix #29201: movie clip editor - right click crashes blender
Just another not very smart check for "boundary" case of usecase.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index 0a6f49f7c9f..7ab1b24e9b3 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -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; } |