diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-09 01:58:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-09 01:58:00 +0400 |
commit | 820acf1b9eee10e4efd6929b7ca05417611c5f1a (patch) | |
tree | 027de792f0f06e3244ce2ce999768b40849515b0 /source/blender/editors/space_view3d/drawarmature.c | |
parent | b0d5555a064dedf00c1a6605f8f501fc25978641 (diff) |
add editmode wire color,
also changed lattice to use this, it used a hard-coded green color which was hard to see over the default background.
Diffstat (limited to 'source/blender/editors/space_view3d/drawarmature.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawarmature.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_view3d/drawarmature.c b/source/blender/editors/space_view3d/drawarmature.c index 5af2296e60a..f3528ef61b6 100644 --- a/source/blender/editors/space_view3d/drawarmature.c +++ b/source/blender/editors/space_view3d/drawarmature.c @@ -302,13 +302,13 @@ static void set_ebone_glColor(const unsigned int boneflag) UI_ThemeColor(TH_EDGE_SELECT); } else if (boneflag & BONE_DRAW_ACTIVE) { - UI_ThemeColorBlend(TH_WIRE, TH_EDGE_SELECT, 0.15f); /* unselected active */ + UI_ThemeColorBlend(TH_WIRE_EDIT, TH_EDGE_SELECT, 0.15f); /* unselected active */ } else if (boneflag & BONE_SELECTED) { UI_ThemeColorShade(TH_EDGE_SELECT, -20); } else { - UI_ThemeColor(TH_WIRE); + UI_ThemeColor(TH_WIRE_EDIT); } } @@ -817,7 +817,7 @@ static void draw_sphere_bone_wire(float smat[4][4], float imat[4][4], /* base */ if (armflag & ARM_EDITMODE) { if (boneflag & BONE_SELECTED) UI_ThemeColor(TH_SELECT); - else UI_ThemeColor(TH_WIRE); + else UI_ThemeColor(TH_WIRE_EDIT); } sub_v3_v3v3(dirvec, tailvec, headvec); @@ -1014,7 +1014,7 @@ static void draw_line_bone(int armflag, int boneflag, short constflag, unsigned if (armflag & ARM_POSEMODE) set_pchan_glColor(PCHAN_COLOR_NORMAL, boneflag, constflag); else if (armflag & ARM_EDITMODE) { - UI_ThemeColor(TH_WIRE); + UI_ThemeColor(TH_WIRE_EDIT); } /* Draw root point if we are not connected */ @@ -2212,7 +2212,7 @@ static void draw_ebones(View3D *v3d, ARegion *ar, Object *ob, const short dt) /* offset to parent */ if (eBone->parent) { - UI_ThemeColor(TH_WIRE); + UI_ThemeColor(TH_WIRE_EDIT); glLoadName(-1); /* -1 here is OK! */ setlinestyle(3); |