Fix T39795: Crash when duplicate f-curve keyframe, individual origins
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 30 Apr 2014 12:20:39 +0000 (18:20 +0600)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 30 Apr 2014 12:20:39 +0000 (18:20 +0600)
Seems to be just missing case for center point initialization in td.

Thanks Campbell for review!

source/blender/editors/transform/transform.c

index 2cec4d61e3e74cdf15aaabe916520ef442cc22c9..b24c8229b61e6bc7b86225c60a0a24fd79faa100 100644 (file)
@@ -7683,7 +7683,8 @@ static void applyTimeScale(TransInfo *t, const int UNUSED(mval[2]))
 /* TODO, move to: transform_queries.c */
 bool checkUseLocalCenter_GraphEdit(TransInfo *t)
 {
-       return ((t->around == V3D_LOCAL) && !ELEM3(t->mode, TFM_TRANSLATION, TFM_TIME_TRANSLATE, TFM_TIME_SLIDE));
+       return ((t->around == V3D_LOCAL) &&
+               !ELEM4(t->mode, TFM_TRANSLATION, TFM_TIME_TRANSLATE, TFM_TIME_SLIDE, TFM_TIME_DUPLICATE));
 }
 
 bool checkUseAxisMatrix(TransInfo *t)