diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-02-27 19:39:44 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-02-27 19:46:17 +0300 |
commit | 495216d2b8b4cb098a01a8dcbdc3d5235b59f5b3 (patch) | |
tree | 8ef994972e6169b372894ca173984461f7312503 /source/blender/draw/modes/pose_mode.c | |
parent | 28ccc0fa2f148bac7d3ed3ebdbe2b2dfa5ee5efc (diff) |
Armature: Make selection only work on outlines in wireframe mode
This was not working in edit mode and broken in posemode + bounding box
display type.
This makes possible to select bones inside other bones.
Diffstat (limited to 'source/blender/draw/modes/pose_mode.c')
-rw-r--r-- | source/blender/draw/modes/pose_mode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/modes/pose_mode.c b/source/blender/draw/modes/pose_mode.c index 69c613e7593..24a9a4753aa 100644 --- a/source/blender/draw/modes/pose_mode.c +++ b/source/blender/draw/modes/pose_mode.c @@ -260,8 +260,10 @@ static void POSE_draw_scene(void *vedata) const bool bone_selection_overlay = POSE_is_bone_selection_overlay_active(); if (DRW_state_is_select()) { + DRW_draw_pass(psl->bone_outline[0]); DRW_draw_pass(psl->bone_solid[0]); DRW_draw_pass(psl->bone_wire[0]); + DRW_draw_pass(psl->bone_outline[1]); DRW_draw_pass(psl->bone_solid[1]); DRW_draw_pass(psl->bone_wire[1]); return; |