[Bf-blender-cvs] [e410f352d67] greasepencil-object: GPencil: Fix Select material operator not refresh viewport

Antonioya noreply at git.blender.org
Mon Jul 8 12:21:16 CEST 2019


Commit: e410f352d67601561f5c0eb70d516cdc3ab9aa7c
Author: Antonioya
Date:   Mon Jul 8 12:21:06 2019 +0200
Branches: greasepencil-object
https://developer.blender.org/rBe410f352d67601561f5c0eb70d516cdc3ab9aa7c

GPencil: Fix Select material operator not refresh viewport

With the change to depsgraph evaluation, need tag the datablock to refresh screen.

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

M	source/blender/editors/gpencil/gpencil_data.c

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

diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c
index 941c7645dc0..2ebd64a15f9 100644
--- a/source/blender/editors/gpencil/gpencil_data.c
+++ b/source/blender/editors/gpencil/gpencil_data.c
@@ -2869,7 +2869,7 @@ static int gpencil_color_select_exec(bContext *C, wmOperator *op)
   CTX_DATA_END;
 
   /* copy on write tag is needed, or else no refresh happens */
-  DEG_id_tag_update(&gpd->id, ID_RECALC_COPY_ON_WRITE);
+  DEG_id_tag_update(&gpd->id, ID_RECALC_GEOMETRY | ID_RECALC_COPY_ON_WRITE);
 
   /* notifiers */
   WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_EDITED, NULL);



More information about the Bf-blender-cvs mailing list