Fix T51965: Custom Bone Shape Wireframe setting affects wireframe thickness.
Clearing of custom bones outline's line thickness was not done at proper point, wireframe drawing never changes line thickness, only solid draw with outline does...
This commit is contained in:
parent
d1dfd5fa26
commit
f86b43e130
Notes:
blender-bot
2023-02-14 07:25:51 +01:00
Referenced by issue #51965, Custom Bone Shape Wireframe setting affects wireframe thickness
|
@ -1903,6 +1903,11 @@ static void draw_pose_bones(Scene *scene, View3D *v3d, ARegion *ar, Base *base,
|
|||
}
|
||||
}
|
||||
|
||||
/* custom bone may draw outline double-width */
|
||||
if (arm->flag & ARM_POSEMODE) {
|
||||
glLineWidth(1.0f);
|
||||
}
|
||||
|
||||
/* draw custom bone shapes as wireframes */
|
||||
if (!(arm->flag & ARM_NO_CUSTOM) &&
|
||||
(draw_wire || (dt <= OB_WIRE)) )
|
||||
|
@ -1968,11 +1973,6 @@ static void draw_pose_bones(Scene *scene, View3D *v3d, ARegion *ar, Base *base,
|
|||
index = -1;
|
||||
}
|
||||
}
|
||||
|
||||
/* custom bone may draw outline double-width */
|
||||
if (arm->flag & ARM_POSEMODE) {
|
||||
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)) {
|
||||
|
|
Loading…
Reference in New Issue