[Bf-blender-cvs] [ca028f13872] blender2.8: Fix POST_OT_hide/reveal

Joshua Leung noreply at git.blender.org
Tue May 15 19:08:03 CEST 2018


Commit: ca028f1387218a9d80c2fe406a05191e7e4b90d8
Author: Joshua Leung
Date:   Tue May 15 19:08:00 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBca028f1387218a9d80c2fe406a05191e7e4b90d8

Fix POST_OT_hide/reveal

Apparently they weren't actually working, despite seemingly working
when tested earlier. Argh!

===================================================================

M	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);



More information about the Bf-blender-cvs mailing list