From b2178472e95e777b4e61c77c18ee90eb8a22cbca Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 29 Apr 2017 04:25:10 +1000 Subject: Disable custom armature colors --- source/blender/draw/intern/draw_armature.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/blender') 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; } } -- cgit v1.2.3