[Bf-blender-cvs] [35a298db520] blender2.8: Armature: Fix non working Wireframe option on bones.

Clément Foucault noreply at git.blender.org
Thu May 17 11:12:05 CEST 2018


Commit: 35a298db52094771c34320f8f1dc1d103ba8373c
Author: Clément Foucault
Date:   Thu May 17 11:11:53 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB35a298db52094771c34320f8f1dc1d103ba8373c

Armature: Fix non working Wireframe option on bones.

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

M	source/blender/draw/intern/draw_armature.c

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

diff --git a/source/blender/draw/intern/draw_armature.c b/source/blender/draw/intern/draw_armature.c
index abf0a54d95b..d7cc5f0cac6 100644
--- a/source/blender/draw/intern/draw_armature.c
+++ b/source/blender/draw/intern/draw_armature.c
@@ -1169,7 +1169,9 @@ static void draw_bone_custom_shape(
 		DRW_select_load_id(select_id | BONESEL_BONE);
 	}
 
-	drw_shgroup_bone_custom_solid(disp_mat, col_solid, pchan->custom);
+	if ((boneflag & BONE_DRAWWIRE) == 0) {
+		drw_shgroup_bone_custom_solid(disp_mat, col_solid, pchan->custom);
+	}
 	drw_shgroup_bone_custom_wire(disp_mat, col_wire, pchan->custom);
 
 	if (select_id != -1) {



More information about the Bf-blender-cvs mailing list