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
path: root/source
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2007-05-03 14:31:20 +0400
committerJoshua Leung <aligorith@gmail.com>2007-05-03 14:31:20 +0400
commit873cba20d659c434136c51d817bab90387ea6c86 (patch)
tree6fa55d475418e6d72b7ea557cc100e7261a57ad8 /source
parent31f429a26f2fd120d34d398a78f9682e2eaafa44 (diff)
Armature Drawing Tweak:
I've always found it hard to see the armature bones in 'Line' mode that don't have any constraints/ik/keyframes/etc. colour indications as they were set to the colour of the background. This tweak makes these particular bones draw slightly darker than the minor-gridlines in the 3d-view, but not as dark as the major gridlines.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/drawarmature.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/drawarmature.c b/source/blender/src/drawarmature.c
index 9752561445a..dfcaefd03ff 100644
--- a/source/blender/src/drawarmature.c
+++ b/source/blender/src/drawarmature.c
@@ -840,7 +840,7 @@ static void draw_line_bone(int armflag, int boneflag, int constflag, unsigned in
else if(constflag & PCHAN_HAS_CONST) glColor3ub(0, 255, 120);
else BIF_ThemeColor(TH_BONE_POSE); // PCHAN_HAS_ACTION
}
- else BIF_ThemeColor(TH_BACK);
+ else BIF_ThemeColorShade(TH_BACK, -30);
}
}
@@ -860,7 +860,7 @@ static void draw_line_bone(int armflag, int boneflag, int constflag, unsigned in
if(armflag & ARM_EDITMODE) {
if (boneflag & BONE_SELECTED) BIF_ThemeColor(TH_EDGE_SELECT);
- else BIF_ThemeColor(TH_BACK);
+ else BIF_ThemeColorShade(TH_BACK, -30);
}
glBegin(GL_LINES);
glVertex3f(0.0f, 0.0f, 0.0f);