[Bf-blender-cvs] [c5ddbf1] master: Armature outline drawing used single width line

Campbell Barton noreply at git.blender.org
Wed May 11 23:08:24 CEST 2016


Commit: c5ddbf181e7de0c8dbef756059367abcec061956
Author: Campbell Barton
Date:   Thu May 12 07:13:11 2016 +1000
Branches: master
https://developer.blender.org/rBc5ddbf181e7de0c8dbef756059367abcec061956

Armature outline drawing used single width line

Only set line width in pose-mode

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

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 c6b2cce..5cda721 100644
--- a/source/blender/editors/space_view3d/drawarmature.c
+++ b/source/blender/editors/space_view3d/drawarmature.c
@@ -1892,7 +1892,9 @@ static void draw_pose_bones(Scene *scene, View3D *v3d, ARegion *ar, Base *base,
 	}
 	
 	/* custom bone may draw outline double-width */
-	glLineWidth(1.0f);
+	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)) {




More information about the Bf-blender-cvs mailing list