From ff59553dc9d1d96ca49e18fb84717a5c3cdb4844 Mon Sep 17 00:00:00 2001 From: Antonioya Date: Mon, 3 Sep 2018 10:14:13 +0200 Subject: GP: Cleanup function parameter There was a mix of enum parameters and int/bool values. --- source/blender/editors/gpencil/editaction_gpencil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/gpencil/editaction_gpencil.c') diff --git a/source/blender/editors/gpencil/editaction_gpencil.c b/source/blender/editors/gpencil/editaction_gpencil.c index f1b501eec1c..269f53e42ca 100644 --- a/source/blender/editors/gpencil/editaction_gpencil.c +++ b/source/blender/editors/gpencil/editaction_gpencil.c @@ -477,7 +477,7 @@ bool ED_gpencil_anim_copybuf_paste(bAnimContext *ac, const short offset_mode) gpfs->framenum += offset; /* get frame to copy data into (if no frame returned, then just ignore) */ - gpf = BKE_gpencil_layer_getframe(gpld, gpfs->framenum, 1); + gpf = BKE_gpencil_layer_getframe(gpld, gpfs->framenum, GP_GETFRAME_ADD_NEW); if (gpf) { bGPDstroke *gps, *gpsn; -- cgit v1.2.3