Page Menu
Home
Search
Configure Global Search
Log In
Paste
P1042
D5283
Active
Public
Actions
Authored by
Sergey Sharybin (sergey)
on Jul 17 2019, 4:17 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
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
Sergey Sharybin (sergey)
created this paste.
Jul 17 2019, 4:17 PM
Sergey Sharybin (sergey)
created this object with edit policy "Administrators".
Sergey Sharybin (sergey)
mentioned this in
D5283: Fix Crash: Missing DEG tag update mask layer
.
Log In to Comment