diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2018-05-11 09:16:41 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2018-05-11 09:17:05 +0300 |
commit | 6d155dc46206f69aa704c184d40f74274a4ec0cd (patch) | |
tree | 964f499416c7eb952db74210a7518ead7e42d4be /source/blender/editors/armature/armature_ops.c | |
parent | 266638d7832b7794a315fff0c6cec347fc917602 (diff) |
T54983: Bone selection overlay
Bone selection overlay is only available in pose mode.
and when active overrules the selection buffer.
This is currently `tricked` by switching the draw engines, but this is
an exception. Not sure how to solve this in a better way.
After this is solved we can look at how to localize the dim effect to only the objects connected to the active armatures. Currently it dims the whole screen (including background).
@campbellbarton I added you as reviewer as it you have done a lot in the DRW_draw_select_loop
Reviewers: campbellbarton, fclem
Reviewed By: fclem
Subscribers: campbellbarton
Tags: #bf_blender_2.8, #code_quest
Maniphest Tasks: T54983
Differential Revision: https://developer.blender.org/D3241
Diffstat (limited to 'source/blender/editors/armature/armature_ops.c')
-rw-r--r-- | source/blender/editors/armature/armature_ops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/armature/armature_ops.c b/source/blender/editors/armature/armature_ops.c index c9cebadb47d..8dfc11aea19 100644 --- a/source/blender/editors/armature/armature_ops.c +++ b/source/blender/editors/armature/armature_ops.c @@ -131,6 +131,8 @@ void ED_operatortypes_armature(void) WM_operatortype_append(POSE_OT_quaternions_flip); WM_operatortype_append(POSE_OT_bone_layers); + + WM_operatortype_append(POSE_OT_toggle_bone_selection_overlay); WM_operatortype_append(POSE_OT_propagate); @@ -363,6 +365,7 @@ void ED_keymap_armature(wmKeyConfig *keyconf) WM_keymap_add_item(keymap, "ARMATURE_OT_layers_show_all", ACCENTGRAVEKEY, KM_PRESS, KM_CTRL, 0); WM_keymap_add_item(keymap, "ARMATURE_OT_armature_layers", MKEY, KM_PRESS, KM_SHIFT, 0); WM_keymap_add_item(keymap, "POSE_OT_bone_layers", MKEY, KM_PRESS, 0, 0); + WM_keymap_add_item(keymap, "POSE_OT_toggle_bone_selection_overlay", ZKEY, KM_PRESS, 0, 0); /* special transforms: */ /* 1) envelope/b-bone size */ |