Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-12-05 19:21:38 +0300
committerAntonioya <blendergit@gmail.com>2018-12-05 19:22:03 +0300
commit56aa86ae2517e6be66826bf2347e6e73cd7e3688 (patch)
tree4d02480f6b712433adc72d066cd8e1b79a6afffb /source/blender/editors/gpencil/annotate_paint.c
parent21de125657064c18ccffe5bf2aa97b4e05fc9116 (diff)
GP: Tag datablock after mode change
Diffstat (limited to 'source/blender/editors/gpencil/annotate_paint.c')
-rw-r--r--source/blender/editors/gpencil/annotate_paint.c4
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);