[Bf-blender-cvs] [23d631a869d] temp-lineart-contained: LineArt: Add new frames when no frame existed in modifier

YimingWu noreply at git.blender.org
Fri Mar 12 16:01:34 CET 2021


Commit: 23d631a869d2a70439eaaa2c632fa5a8db64db6f
Author: YimingWu
Date:   Fri Mar 12 23:01:13 2021 +0800
Branches: temp-lineart-contained
https://developer.blender.org/rB23d631a869d2a70439eaaa2c632fa5a8db64db6f

LineArt: Add new frames when no frame existed in modifier

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

M	source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c

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

diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c
index 41ea13dac67..3b11d0af730 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c
@@ -152,6 +152,7 @@ static void generateStrokes(GpencilModifierData *md, Depsgraph *depsgraph, Objec
   BKE_gpencil_frame_active_set(depsgraph, gpd);
   bGPDframe *gpf = gpl->actframe;
   if (gpf == NULL) {
+    BKE_gpencil_frame_addnew(gpl, DEG_get_evaluated_scene(depsgraph)->r.cfra);
     return;
   }



More information about the Bf-blender-cvs mailing list