[Bf-blender-cvs] [666d74e4d6d] master: Fix T68444: outliner bone visibility not updating
Nathan Craddock
noreply at git.blender.org
Wed Aug 21 06:42:04 CEST 2019
Commit: 666d74e4d6db66dd7a6f57cdd31c5dfc983e59bf
Author: Nathan Craddock
Date: Tue Aug 20 22:30:32 2019 -0600
Branches: master
https://developer.blender.org/rB666d74e4d6db66dd7a6f57cdd31c5dfc983e59bf
Fix T68444: outliner bone visibility not updating
Tags for update when pose bone visibility is toggled in the outliner.
===================================================================
M source/blender/editors/space_outliner/outliner_draw.c
===================================================================
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index cd7cd8b84fb..5116e58453f 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -177,8 +177,9 @@ static void restrictbutton_r_lay_cb(bContext *C, void *poin, void *UNUSED(poin2)
WM_event_add_notifier(C, NC_SCENE | ND_RENDER_OPTIONS, poin);
}
-static void restrictbutton_bone_visibility_cb(bContext *C, void *UNUSED(poin), void *poin2)
+static void restrictbutton_bone_visibility_cb(bContext *C, void *poin, void *poin2)
{
+ bArmature *arm = (bArmature *)poin;
Bone *bone = (Bone *)poin2;
if (bone->flag & BONE_HIDDEN_P) {
bone->flag &= ~(BONE_SELECTED | BONE_TIPSEL | BONE_ROOTSEL);
@@ -189,6 +190,7 @@ static void restrictbutton_bone_visibility_cb(bContext *C, void *UNUSED(poin), v
}
WM_event_add_notifier(C, NC_OBJECT | ND_POSE, NULL);
+ DEG_id_tag_update(&arm->id, ID_RECALC_COPY_ON_WRITE);
}
static void restrictbutton_bone_select_cb(bContext *C, void *UNUSED(poin), void *poin2)
More information about the Bf-blender-cvs
mailing list