From ca028f1387218a9d80c2fe406a05191e7e4b90d8 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Tue, 15 May 2018 19:08:00 +0200 Subject: Fix POST_OT_hide/reveal Apparently they weren't actually working, despite seemingly working when tested earlier. Argh! --- source/blender/editors/armature/pose_edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/armature/pose_edit.c') 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); -- cgit v1.2.3