Fix Shape Key retime starting at frame 10

D3571 by @alm
This commit is contained in:
Campbell Barton 2018-07-31 18:42:22 +10:00
parent 21f61cbe73
commit 36389444b0
1 changed files with 4 additions and 2 deletions

View File

@ -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);