[Bf-blender-cvs] [60f8f8e8843] asset-greasepencil: GPencil: Add notifier to update material list

Antonio Vazquez noreply at git.blender.org
Tue Jul 20 19:32:46 CEST 2021


Commit: 60f8f8e8843de9d4b14a13f657ae7ff212dbc3fc
Author: Antonio Vazquez
Date:   Tue Jul 20 18:49:27 2021 +0200
Branches: asset-greasepencil
https://developer.blender.org/rB60f8f8e8843de9d4b14a13f657ae7ff212dbc3fc

GPencil: Add notifier to update material list

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_asset.c b/source/blender/editors/gpencil/gpencil_asset.c
index 8d74f271939..0b353e8ac23 100644
--- a/source/blender/editors/gpencil/gpencil_asset.c
+++ b/source/blender/editors/gpencil/gpencil_asset.c
@@ -969,7 +969,7 @@ static void gpencil_asset_import_exit(bContext *C, wmOperator *op)
     MEM_SAFE_FREE(tgpa);
   }
   DEG_id_tag_update(&gpd->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY);
-  WM_event_add_notifier(C, NC_GPENCIL | NA_EDITED, NULL);
+  WM_event_add_notifier(C, NC_GPENCIL | NA_EDITED | ND_DATA, NULL);
 
   /* Clear pointer. */
   op->customdata = NULL;



More information about the Bf-blender-cvs mailing list