[Bf-blender-cvs] [b2178472e95] blender2.8: Disable custom armature colors

Campbell Barton noreply at git.blender.org
Fri Apr 28 20:23:37 CEST 2017


Commit: b2178472e95e777b4e61c77c18ee90eb8a22cbca
Author: Campbell Barton
Date:   Sat Apr 29 04:25:10 2017 +1000
Branches: blender2.8
https://developer.blender.org/rBb2178472e95e777b4e61c77c18ee90eb8a22cbca

Disable custom armature colors

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

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 ca3d8bfa717..db153a4803c 100644
--- a/source/blender/draw/intern/draw_armature.c
+++ b/source/blender/draw/intern/draw_armature.c
@@ -65,6 +65,9 @@
 #define BONE_VAR(eBone, pchan, var) ((eBone) ? (eBone->var) : (pchan->var))
 #define BONE_FLAG(eBone, pchan) ((eBone) ? (eBone->flag) : (pchan->bone->flag))
 
+/* For now just match 2.7x where possible. */
+// #define USE_SOLID_COLOR
+
 /* Reset for drawing each armature object */
 static struct {
 	/* Current armature object */
@@ -229,6 +232,7 @@ static const float *get_bone_solid_color(const EditBone *eBone, const bPoseChann
 	if (g_theme.const_color)
 		return g_theme.bone_solid_color;
 
+#ifdef USE_SOLID_COLOR
 	/* Edit Mode */
 	if (eBone) {
 		bool is_active = (arm->act_edbone == eBone);
@@ -252,6 +256,9 @@ static const float *get_bone_solid_color(const EditBone *eBone, const bPoseChann
 			}
 		}
 	}
+#else
+	UNUSED_VARS(eBone, pchan, arm);
+#endif
 
 	return g_theme.bone_solid_color;
 }
@@ -384,11 +391,15 @@ static void draw_points(
 	/* Edit bone points can be selected */
 	if (eBone) {
 		if (eBone->flag & BONE_ROOTSEL) {
+#ifdef USE_SOLID_COLOR
 			col_solid_root = g_theme.vertex_select_color;
+#endif
 			col_wire_root = g_theme.vertex_select_color;
 		}
 		if (eBone->flag & BONE_TIPSEL) {
+#ifdef USE_SOLID_COLOR
 			col_solid_tail = g_theme.vertex_select_color;
+#endif
 			col_wire_tail = g_theme.vertex_select_color;
 		}
 	}




More information about the Bf-blender-cvs mailing list