Fix T66934 Overlay: "Outline Selected" overlay doesnt affect armatures

This is a really small fix. Could be included in 2.83 LTS branch.
This commit is contained in:
Clément Foucault 2020-06-23 23:45:41 +02:00
parent b0449cac66
commit c26abd1c29
Notes: blender-bot 2023-02-14 10:37:50 +01:00
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
Referenced by issue #66934, "Outline Selected" overlay doesnt affect armatures
1 changed files with 2 additions and 1 deletions

View File

@ -2168,7 +2168,8 @@ static void armature_context_setup(ArmatureDrawContext *ctx,
ctx->do_relations = !DRW_state_is_select() && pd->armature.show_relations &&
(is_edit_mode | is_pose_mode);
ctx->const_color = DRW_state_is_select() ? select_const_color : const_color;
ctx->const_wire = (((ob->base_flag & BASE_SELECTED) || (arm->drawtype == ARM_WIRE)) ?
ctx->const_wire = ((((ob->base_flag & BASE_SELECTED) && (pd->v3d_flag & V3D_SELECT_OUTLINE)) ||
(arm->drawtype == ARM_WIRE)) ?
1.5f :
((!is_filled || is_transparent) ? 1.0f : 0.0f));
}