Page MenuHome
Paste P1042

D5283
ActivePublic

Authored by Sergey Sharybin (sergey) on Jul 17 2019, 4:17 PM.
diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c
index a205f6878e3..39ee34d6406 100644
--- a/source/blender/editors/mask/mask_ops.c
+++ b/source/blender/editors/mask/mask_ops.c
@@ -440,6 +440,7 @@ static int masklay_new_exec(bContext *C, wmOperator *op)
BKE_mask_layer_new(mask, name);
mask->masklay_act = mask->masklay_tot - 1;
+ DEG_id_tag_update(&mask->id, ID_RECALC_COPY_ON_WRITE);
WM_event_add_notifier(C, NC_MASK | NA_EDITED, mask);
return OPERATOR_FINISHED;
@@ -473,6 +474,7 @@ static int masklay_remove_exec(bContext *C, wmOperator *UNUSED(op))
if (masklay) {
BKE_mask_layer_remove(mask, masklay);
+ DEG_id_tag_update(&mask->id, ID_RECALC_COPY_ON_WRITE);
WM_event_add_notifier(C, NC_MASK | NA_EDITED, mask);
}
@@ -2205,6 +2207,7 @@ static int mask_layer_move_exec(bContext *C, wmOperator *op)
mask->masklay_act++;
}
+ DEG_id_tag_update(&mask->id, ID_RECALC_COPY_ON_WRITE);
WM_event_add_notifier(C, NC_MASK | NA_EDITED, mask);
return OPERATOR_FINISHED;

Event Timeline