diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-01-30 13:10:58 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-01-30 13:10:58 +0400 |
commit | 942413bdb2284de52e7e88c74b5028dddafbccb3 (patch) | |
tree | fe08f49af8464745dc72c315759595ef05d92e41 | |
parent | e86c5f858c446f49bc76dee766237faa68bd68c8 (diff) |
Fix #30021: Crash happens when rotating markers
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index 0563cc3adf5..ced6bb8da63 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -5640,10 +5640,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 */ |