Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-04-28 21:25:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-04-28 21:26:31 +0300
commitb2178472e95e777b4e61c77c18ee90eb8a22cbca (patch)
tree8d63c744a0c29953137da375f7e24c2f5abcf472 /source/blender
parent04f43d4cdf0753e655bd073be65f981dadbbd63d (diff)
Disable custom armature colors
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/draw/intern/draw_armature.c11
1 files changed, 11 insertions, 0 deletions
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;
}
}