[Bf-blender-cvs] [005c66395a8] blender-v2.83-release: Fix T66934 Overlay: "Outline Selected" overlay doesnt affect armatures

Clément Foucault noreply at git.blender.org
Thu Jul 2 09:33:38 CEST 2020


Commit: 005c66395a8a9a00ee8313183fa329357dc3ddc9
Author: Clément Foucault
Date:   Tue Jun 23 23:45:41 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB005c66395a8a9a00ee8313183fa329357dc3ddc9

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

This is a really small fix. Could be included in 2.83 LTS branch.

===================================================================

M	source/blender/draw/engines/overlay/overlay_armature.c

===================================================================

diff --git a/source/blender/draw/engines/overlay/overlay_armature.c b/source/blender/draw/engines/overlay/overlay_armature.c
index 4bb9a74b2e2..b2d10ff7973 100644
--- a/source/blender/draw/engines/overlay/overlay_armature.c
+++ b/source/blender/draw/engines/overlay/overlay_armature.c
@@ -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));
 }



More information about the Bf-blender-cvs mailing list