[Bf-blender-cvs] [5222521bc7f] lanpr-under-gp: LineArt: Don't retain strokes when disabled auto_update. Also prevent render dead-lock.

YimingWu noreply at git.blender.org
Tue Jul 28 05:06:17 CEST 2020


Commit: 5222521bc7f9b789f91edcee5f8c519f7a600781
Author: YimingWu
Date:   Tue Jul 28 11:05:49 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rB5222521bc7f9b789f91edcee5f8c519f7a600781

LineArt: Don't retain strokes when disabled auto_update. Also prevent render dead-lock.

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

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 ea471e592a0..4e11402eb38 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c
@@ -129,6 +129,11 @@ static void generateStrokes(GpencilModifierData *md, Depsgraph *depsgraph, Objec
   LineartGpencilModifierData *lmd = (LineartGpencilModifierData *)md;
   bGPdata *gpd = ob->data;
 
+  Scene *s = DEG_get_evaluated_scene(depsgraph);
+  if (!(s->lineart.flags & LRT_AUTO_UPDATE)) {
+    return;
+  }
+
   /* Guard early, don't trigger calculation when no gpencil frame is present. Probably should
    * disable in the isModifierDisabled() function but we need addtional arg for depsgraph and
    * gpd.*/



More information about the Bf-blender-cvs mailing list