Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_draw.c
| Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| WM_event_add_notifier(C, NC_SCENE | ND_RENDER_OPTIONS, poin); | WM_event_add_notifier(C, NC_SCENE | ND_RENDER_OPTIONS, poin); | ||||
| } | } | ||||
| static void restrictbutton_bone_visibility_fn(bContext *C, void *poin, void *UNUSED(poin2)) | static void restrictbutton_bone_visibility_fn(bContext *C, void *poin, void *UNUSED(poin2)) | ||||
| { | { | ||||
| Bone *bone = (Bone *)poin; | 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); | restrictbutton_recursive_bone(bone, BONE_HIDDEN_P, (bone->flag & BONE_HIDDEN_P) != 0); | ||||
| } | } | ||||
| } | } | ||||
| static void restrictbutton_bone_select_fn(bContext *C, void *UNUSED(poin), void *poin2) | static void restrictbutton_bone_select_fn(bContext *C, void *UNUSED(poin), void *poin2) | ||||
| { | { | ||||
| Bone *bone = (Bone *)poin2; | Bone *bone = (Bone *)poin2; | ||||
| if (bone->flag & BONE_UNSELECTABLE) { | if (bone->flag & BONE_UNSELECTABLE) { | ||||
| bone->flag &= ~(BONE_SELECTED | BONE_TIPSEL | BONE_ROOTSEL); | 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); | restrictbutton_recursive_bone(bone, BONE_UNSELECTABLE, (bone->flag & BONE_UNSELECTABLE) != 0); | ||||
| } | } | ||||
| WM_event_add_notifier(C, NC_OBJECT | ND_POSE, NULL); | WM_event_add_notifier(C, NC_OBJECT | ND_POSE, NULL); | ||||
| } | } | ||||
| static void restrictbutton_ebone_select_fn(bContext *C, void *UNUSED(poin), void *poin2) | static void restrictbutton_ebone_select_fn(bContext *C, void *UNUSED(poin), void *poin2) | ||||
| { | { | ||||
| EditBone *ebone = (EditBone *)poin2; | EditBone *ebone = (EditBone *)poin2; | ||||
| if (ebone->flag & BONE_UNSELECTABLE) { | if (ebone->flag & BONE_UNSELECTABLE) { | ||||
| ebone->flag &= ~(BONE_SELECTED | BONE_TIPSEL | BONE_ROOTSEL); | 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( | restrictbutton_recursive_ebone( | ||||
| C, ebone, BONE_UNSELECTABLE, (ebone->flag & BONE_UNSELECTABLE) != 0); | C, ebone, BONE_UNSELECTABLE, (ebone->flag & BONE_UNSELECTABLE) != 0); | ||||
| } | } | ||||
| WM_event_add_notifier(C, NC_OBJECT | ND_POSE, NULL); | WM_event_add_notifier(C, NC_OBJECT | ND_POSE, NULL); | ||||
| } | } | ||||
| static void restrictbutton_ebone_visibility_fn(bContext *C, void *UNUSED(poin), void *poin2) | static void restrictbutton_ebone_visibility_fn(bContext *C, void *UNUSED(poin), void *poin2) | ||||
| { | { | ||||
| EditBone *ebone = (EditBone *)poin2; | EditBone *ebone = (EditBone *)poin2; | ||||
| if (ebone->flag & BONE_HIDDEN_A) { | if (ebone->flag & BONE_HIDDEN_A) { | ||||
| ebone->flag &= ~(BONE_SELECTED | BONE_TIPSEL | BONE_ROOTSEL); | 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); | restrictbutton_recursive_ebone(C, ebone, BONE_HIDDEN_A, (ebone->flag & BONE_HIDDEN_A) != 0); | ||||
| } | } | ||||
| WM_event_add_notifier(C, NC_OBJECT | ND_POSE, NULL); | WM_event_add_notifier(C, NC_OBJECT | ND_POSE, NULL); | ||||
| } | } | ||||
| static void restrictbutton_gp_layer_flag_fn(bContext *C, void *poin, void *UNUSED(poin2)) | static void restrictbutton_gp_layer_flag_fn(bContext *C, void *poin, void *UNUSED(poin2)) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 3,461 Lines • Show Last 20 Lines | |||||