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;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs