Commit: 41d9e3dd6801c5274a4786e7f673152c019973a8
Author: Nathan Craddock
Date: Wed Aug 12 17:22:50 2020 -0600
Branches: soc-2020-outliner
https://developer.blender.org/rB41d9e3dd6801c5274a4786e7f673152c019973a8
Fix: Use shift for bone restrict button hierarchy toggles
The bone restrict buttons were using `ctrl` rather than `shift` for the
hierarchy toggle. Use `shift` for consistency.
===================================================================
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 918a4662e3e..0894c20c81d 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -183,7 +183,7 @@ static void restrictbutton_bone_visibility_fn(bContext *C,
void *poin, void *UNU
{
Bone *bone = (Bone *)poin;
- if (CTX_wm_window(C)->eventstate->ctrl) {
+ if (CTX_wm_window(C)->eventstate->shift) {
restrictbutton_recursive_bone(bone, BONE_HIDDEN_P, (bone->flag &
BONE_HIDDEN_P) != 0);
}
}
@@ -195,7 +195,7 @@ static void restrictbutton_bone_select_fn(bContext *C, void
*UNUSED(poin), void
bone->flag &= ~(BONE_SELECTED | BONE_TIPSEL | BONE_ROOTSEL);
}
- if (CTX_wm_window(C)->eventstate->ctrl) {
+ if (CTX_wm_window(C)->eventstate->shift) {
restrictbutton_recursive_bone(bone, BONE_UNSELECTABLE, (bone->flag &
BONE_UNSELECTABLE) != 0);
}
@@ -210,7 +210,7 @@ static void restrictbutton_ebone_select_fn(bContext *C,
void *UNUSED(poin), void
ebone->flag &= ~(BONE_SELECTED | BONE_TIPSEL | BONE_ROOTSEL);
}
- if (CTX_wm_window(C)->eventstate->ctrl) {
+ if (CTX_wm_window(C)->eventstate->shift) {
restrictbutton_recursive_ebone(
C, ebone, BONE_UNSELECTABLE, (ebone->flag & BONE_UNSELECTABLE) != 0);
}
@@ -225,7 +225,7 @@ static void restrictbutton_ebone_visibility_fn(bContext *C,
void *UNUSED(poin),
ebone->flag &= ~(BONE_SELECTED | BONE_TIPSEL | BONE_ROOTSEL);
}
- if (CTX_wm_window(C)->eventstate->ctrl) {
+ if (CTX_wm_window(C)->eventstate->shift) {
restrictbutton_recursive_ebone(C, ebone, BONE_HIDDEN_A, (ebone->flag &
BONE_HIDDEN_A) != 0);
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs