Commit: 19e6321ac0ca4cdc1d421b5de5117c80e2fb14d0
Author: Joshua Leung
Date:   Thu Sep 8 01:24:02 2016 +1200
Branches: master
https://developer.blender.org/rB19e6321ac0ca4cdc1d421b5de5117c80e2fb14d0

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.

===================================================================

M       source/blender/editors/gpencil/gpencil_edit.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_edit.c 
b/source/blender/editors/gpencil/gpencil_edit.c
index c3b318a..73eac5d 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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to