diff options
author | Joshua Leung <aligorith@gmail.com> | 2016-09-07 16:24:02 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2016-09-07 16:24:02 +0300 |
commit | 19e6321ac0ca4cdc1d421b5de5117c80e2fb14d0 (patch) | |
tree | 94f24c07918c4bb4dcccb8b212e1d16d1b6a63a5 /source | |
parent | 4b65662483a6fabdf4f7b2b8f68190aaec4e38c1 (diff) |
GP Interpolation: Mark created frames as being "breakdowns"
This brings this tool more in line with the Breakdowner for armature animation,
with which it shares many commonalities.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index c3b318a4d68..73eac5d77e1 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -2406,6 +2406,8 @@ static int gpencil_interpolate_modal(bContext *C, wmOperator *op, const wmEvent /* insert keyframes as required... */ for (tgpil = tgpi->ilayers.first; tgpil; tgpil = tgpil->next) { gpf_dst = BKE_gpencil_layer_getframe(tgpil->gpl, tgpi->cframe, GP_GETFRAME_ADD_NEW); + gpf_dst->key_type = BEZT_KEYTYPE_BREAKDOWN; + /* copy strokes */ BLI_listbase_clear(&gpf_dst->strokes); for (gps_src = tgpil->interFrame->strokes.first; gps_src; gps_src = gps_src->next) { @@ -2585,6 +2587,7 @@ static int gpencil_interpolate_seq_exec(bContext *C, wmOperator *op) /* create a new frame if needed */ if (interFrame == NULL) { interFrame = BKE_gpencil_layer_getframe(gpl, cframe, GP_GETFRAME_ADD_NEW); + interFrame->key_type = BEZT_KEYTYPE_BREAKDOWN; } /* create new stroke */ new_stroke = MEM_dupallocN(gps_from); |