[Bf-blender-cvs] [43df7f9f6aa] lanpr-under-gp: LANPR: GP Target now recalculate geometry (using DEG_id_tag thing) automatically.

YimingWu noreply at git.blender.org
Sun Jun 7 16:29:11 CEST 2020


Commit: 43df7f9f6aa725afb257d908611f1e4209d6f4e4
Author: YimingWu
Date:   Sun Jun 7 20:30:04 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rB43df7f9f6aa725afb257d908611f1e4209d6f4e4

LANPR: GP Target now recalculate geometry (using DEG_id_tag thing) automatically.

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

M	source/blender/editors/lanpr/lanpr_cpu.c

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

diff --git a/source/blender/editors/lanpr/lanpr_cpu.c b/source/blender/editors/lanpr/lanpr_cpu.c
index 0624cd8b00a..b35936e5f16 100644
--- a/source/blender/editors/lanpr/lanpr_cpu.c
+++ b/source/blender/editors/lanpr/lanpr_cpu.c
@@ -4028,6 +4028,8 @@ static void lanpr_update_gp_strokes_single(Depsgraph *dg,
 
   lanpr_generate_gpencil_from_chain(
       dg, ob, gpl, gpf, level_start, level_end, use_material, col, type);
+
+  DEG_id_tag_update(&gpd->id, ID_RECALC_GEOMETRY);
 }
 static void lanpr_update_gp_strokes_recursive(
     Depsgraph *dg, struct Collection *col, int frame, Object *source_only, Object *target_only)



More information about the Bf-blender-cvs mailing list