diff options
author | Joshua Leung <aligorith@gmail.com> | 2018-05-15 20:08:00 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2018-05-15 20:08:00 +0300 |
commit | ca028f1387218a9d80c2fe406a05191e7e4b90d8 (patch) | |
tree | fc9efeeab01172eedace7eb6284a2a0cf22f1e7e /source/blender/editors/armature/pose_edit.c | |
parent | 747326ed25266fcd1775a80430583f0beef46f80 (diff) |
Fix POST_OT_hide/reveal
Apparently they weren't actually working, despite seemingly working
when tested earlier. Argh!
Diffstat (limited to 'source/blender/editors/armature/pose_edit.c')
-rw-r--r-- | source/blender/editors/armature/pose_edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/armature/pose_edit.c b/source/blender/editors/armature/pose_edit.c index 09190af0360..932919cb19d 100644 --- a/source/blender/editors/armature/pose_edit.c +++ b/source/blender/editors/armature/pose_edit.c @@ -1103,8 +1103,8 @@ static int pose_hide_exec(bContext *C, wmOperator *op) bool changed = bone_looper(ob_iter, arm->bonebase.first, hide_select_p, hide_pose_bone_fn) != 0; if (changed) { changed_multi = true; - /* note, notifier might evolve */ WM_event_add_notifier(C, NC_OBJECT | ND_BONE_SELECT, ob_iter); + DEG_id_tag_update(&arm->id, DEG_TAG_COPY_ON_WRITE); } } MEM_freeN(objects); @@ -1166,8 +1166,8 @@ static int pose_reveal_exec(bContext *C, wmOperator *op) bool changed = bone_looper(ob_iter, arm->bonebase.first, select_p, show_pose_bone_cb); if (changed) { changed_multi = true; - /* note, notifier might evolve */ WM_event_add_notifier(C, NC_OBJECT | ND_BONE_SELECT, ob_iter); + DEG_id_tag_update(&arm->id, DEG_TAG_COPY_ON_WRITE); } } MEM_freeN(objects); |