From db32e6c4f77f7168b2261ac7d2070414e8153f95 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 30 Apr 2014 18:20:39 +0600 Subject: Fix T39795: Crash when duplicate f-curve keyframe, individual origins Seems to be just missing case for center point initialization in td. Thanks Campbell for review! --- source/blender/editors/transform/transform.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 2cec4d61e3e..b24c8229b61 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -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) -- cgit v1.2.3