Fix T47592: Wrong line width w/ custom-bones

This commit is contained in:
Campbell Barton 2016-02-28 05:03:49 +11:00 committed by Sergey Sharybin
parent 2c3c8fbaed
commit 9867042ab0
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 */