Fix: Last of the operators from T54811 now work with Copy on Write
This commit is contained in:
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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue