[Bf-blender-cvs] [6668807] master: Fix line width for armature w/ custom bones
Campbell Barton
noreply at git.blender.org
Wed Feb 17 19:54:07 CET 2016
Commit: 66688078bddf211c25862630302adb473870e507
Author: Campbell Barton
Date: Thu Feb 18 05:46:14 2016 +1100
Branches: master
https://developer.blender.org/rB66688078bddf211c25862630302adb473870e507
Fix line width for armature w/ custom bones
===================================================================
M source/blender/editors/space_view3d/drawarmature.c
===================================================================
diff --git a/source/blender/editors/space_view3d/drawarmature.c b/source/blender/editors/space_view3d/drawarmature.c
index ff58724..e9be937 100644
--- a/source/blender/editors/space_view3d/drawarmature.c
+++ b/source/blender/editors/space_view3d/drawarmature.c
@@ -1766,7 +1766,10 @@ static void draw_pose_bones(Scene *scene, View3D *v3d, ARegion *ar, Base *base,
/* set color-set to use */
set_pchan_colorset(ob, pchan);
}
-
+
+ /* may be 2x width from custom bone's outline option */
+ glLineWidth(1.0f);
+
if (use_custom) {
/* if drawwire, don't try to draw in solid */
if (pchan->bone->flag & BONE_DRAWWIRE) {
More information about the Bf-blender-cvs
mailing list