Fix: Last of the operators from T54811 now work with Copy on Write

This commit is contained in:
Joshua Leung 2018-05-11 17:43:56 +02:00
parent d3c4248946
commit f998bad211
Notes: blender-bot 2023-02-14 10:29:30 +01:00
Referenced by commit c350d97a2f, Fix T101046: missing DEG update changing bone layers in editmode
1 changed files with 2 additions and 0 deletions

View File

@ -888,6 +888,7 @@ static int armature_layers_exec(bContext *C, wmOperator *op)
/* note, notifier might evolve */
WM_event_add_notifier(C, NC_OBJECT | ND_POSE, ob);
DEG_id_tag_update(&arm->id, DEG_TAG_COPY_ON_WRITE);
return OPERATOR_FINISHED;
}
@ -962,6 +963,7 @@ static int pose_bone_layers_exec(bContext *C, wmOperator *op)
/* note, notifier might evolve */
WM_event_add_notifier(C, NC_OBJECT | ND_POSE, ob);
DEG_id_tag_update((ID *)ob->data, DEG_TAG_COPY_ON_WRITE);
return OPERATOR_FINISHED;
}