diff options
-rw-r--r-- | source/blender/editors/gpencil/annotate_paint.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/annotate_paint.c b/source/blender/editors/gpencil/annotate_paint.c index c7a8e357e54..19697eddef7 100644 --- a/source/blender/editors/gpencil/annotate_paint.c +++ b/source/blender/editors/gpencil/annotate_paint.c @@ -1881,7 +1881,9 @@ static int gpencil_draw_invoke(bContext *C, wmOperator *op, const wmEvent *event if (sa && sa->spacetype == SPACE_VIEW3D) { if ((ob != NULL) && (ob->type == OB_GPENCIL)) { ob->mode = OB_MODE_OBJECT; - ED_gpencil_setup_modes(C, (bGPdata *)ob->data, 0); + bGPdata *gpd = (bGPdata *)ob->data; + ED_gpencil_setup_modes(C, gpd, 0); + DEG_id_tag_update(&gpd->id, DEG_TAG_COPY_ON_WRITE); ViewLayer *view_layer = CTX_data_view_layer(C); BKE_view_layer_base_deselect_all(view_layer); |