[Bf-blender-cvs] [ee0a9a26da8] lanpr-under-gp: LANPR: Viewport now redraws when grease pencil update is finished in the background.

YimingWu noreply at git.blender.org
Fri Jul 3 08:59:25 CEST 2020


Commit: ee0a9a26da8907fecdf330ca7a96816d3723b2a1
Author: YimingWu
Date:   Fri Jul 3 14:59:19 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rBee0a9a26da8907fecdf330ca7a96816d3723b2a1

LANPR: Viewport now redraws when grease pencil update is finished in the background.

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

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 d031c6a3947..3feef781198 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c
@@ -62,6 +62,9 @@
 
 #include "ED_lineart.h"
 
+#include "WM_api.h"
+#include "WM_types.h"
+
 static void initData(GpencilModifierData *md)
 {
   LineartGpencilModifierData *lmd = (LineartGpencilModifierData *)md;
@@ -146,6 +149,8 @@ static void generateStrokes(GpencilModifierData *md, Depsgraph *depsgraph, Objec
   bGPDframe *gpf = BKE_gpencil_layer_frame_get(gpl, scene->r.cfra, GP_GETFRAME_ADD_NEW);
 
   generate_strokes_actual(md, depsgraph, ob, gpl, gpf);
+
+  WM_main_add_notifier(NA_EDITED | NC_GPENCIL, NULL);
 }
 
 static void bakeModifier(Main *UNUSED(bmain),



More information about the Bf-blender-cvs mailing list