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.
This commit is contained in:
Joshua Leung 2016-09-08 01:24:02 +12:00
parent 4b65662483
commit 19e6321ac0
1 changed files with 3 additions and 0 deletions

View File

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