[Bf-blender-cvs] [03f56a9fd69] lanpr-under-gp: LineArt: Fix frame cleaning at the wrong time.
YimingWu
noreply at git.blender.org
Tue Jul 28 04:35:28 CEST 2020
Commit: 03f56a9fd69c40a5f0ad0bbb5e8cd2cc1c862c07
Author: YimingWu
Date: Tue Jul 28 10:34:41 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rB03f56a9fd69c40a5f0ad0bbb5e8cd2cc1c862c07
LineArt: Fix frame cleaning at the wrong time.
===================================================================
M source/blender/editors/lineart/lineart_cpu.c
===================================================================
diff --git a/source/blender/editors/lineart/lineart_cpu.c b/source/blender/editors/lineart/lineart_cpu.c
index cb25f04b991..b44668d7b65 100644
--- a/source/blender/editors/lineart/lineart_cpu.c
+++ b/source/blender/editors/lineart/lineart_cpu.c
@@ -3854,8 +3854,7 @@ static int lineart_gpencil_bake_strokes_exec(bContext *C, wmOperator *UNUSED(op)
bGPDframe *gpf = BKE_gpencil_layer_frame_get(gpl, frame, GP_GETFRAME_ADD_NEW);
/* Clear original frame */
- if ((scene->lineart.flags & LRT_GPENCIL_OVERWRITE) && gpf->strokes.first &&
- (!cleared)) {
+ if ((scene->lineart.flags & LRT_GPENCIL_OVERWRITE) && (!cleared)) {
BKE_gpencil_layer_frame_delete(gpl, gpf);
gpf = BKE_gpencil_layer_frame_get(gpl, frame, GP_GETFRAME_ADD_NEW);
cleared = 1;
More information about the Bf-blender-cvs
mailing list