Fix T47592: Wrong line width w/ custom-bones

This commit is contained in:
Campbell Barton 2016-02-28 05:03:49 +11:00
parent 3091935fec
commit 82d6162990
Notes: blender-bot 2023-02-14 08:10:08 +01:00
Referenced by issue #47592, Wireframe on custom shape of bones
1 changed files with 3 additions and 0 deletions

View File

@ -1891,6 +1891,9 @@ static void draw_pose_bones(Scene *scene, View3D *v3d, ARegion *ar, Base *base,
}
}
/* custom bone may draw outline double-width */
glLineWidth(1.0f);
/* wire draw over solid only in posemode */
if ((dt <= OB_WIRE) || (arm->flag & ARM_POSEMODE) || ELEM(arm->drawtype, ARM_LINE, ARM_WIRE)) {
/* draw line check first. we do selection indices */