diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-08-21 10:27:24 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-08-21 10:27:24 +0300 |
commit | 7f79bc3054bc849405ed73960eb3117cd15d2e1f (patch) | |
tree | 1edc996eaef578bb09afef0734f9d839ee0f2fea /source/blender/editors/space_outliner/outliner_draw.c | |
parent | 8c95d0250422406a1c4e9db1c20cba5413c543e5 (diff) | |
parent | 3d8f1586973b1fbadf3cf45c66873d1a012764ee (diff) |
Merge branch 'master' into functions
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_draw.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_draw.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index 798123043f2..192aa2682b6 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) @@ -1280,7 +1282,7 @@ static void outliner_draw_restrictbuts(uiBlock *block, UI_BTYPE_ICON_TOGGLE, BONE_HIDDEN_P, 0, - ICON_HIDE_OFF, + ICON_RESTRICT_VIEW_OFF, (int)(ar->v2d.cur.xmax - restrict_offsets.viewport), te->ys, UI_UNIT_X, |