Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-07-31 11:42:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-31 11:42:22 +0300
commit36389444b03ec149fb9c013b744b9d5126f85ae2 (patch)
treec0ea95d02a1819aa6ba69b109977a046ea695dd1 /source/blender/editors/object/object_shapekey.c
parent21f61cbe73a1bc24d2e74b82b039ea5f36c960a5 (diff)
Fix Shape Key retime starting at frame 10
D3571 by @alm
Diffstat (limited to 'source/blender/editors/object/object_shapekey.c')
-rw-r--r--source/blender/editors/object/object_shapekey.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_shapekey.c b/source/blender/editors/object/object_shapekey.c
index eec8b60cef0..e67b62ea624 100644
--- a/source/blender/editors/object/object_shapekey.c
+++ b/source/blender/editors/object/object_shapekey.c
@@ -376,8 +376,10 @@ static int shape_key_retime_exec(bContext *C, wmOperator *UNUSED(op))
if (!key || !kb)
return OPERATOR_CANCELLED;
- for (kb = key->block.first; kb; kb = kb->next)
- kb->pos = (cfra += 0.1f);
+ for (kb = key->block.first; kb; kb = kb->next) {
+ kb->pos = cfra;
+ cfra += 0.1f;
+ }
DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob);