diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-01-27 09:08:43 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-01-27 09:08:43 +0300 |
commit | c8971388a777d4fe26d5eac1b32e7a454d428495 (patch) | |
tree | c82ae7027a1a4a513898396bb20bb72f55fdc08a /source | |
parent | 8c59520060009d08d50b79e2a37734e77fd6aebe (diff) |
Bugfix:
Line-bones without any constraints-colours/custom-colours were being drawn the wrong colour (i.e. they insides were drawn black)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/drawarmature.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/drawarmature.c b/source/blender/src/drawarmature.c index 52f5f4e8954..f7bbfffe153 100644 --- a/source/blender/src/drawarmature.c +++ b/source/blender/src/drawarmature.c @@ -276,7 +276,7 @@ static short set_pchan_glColor (short colCode, int armflag, int boneflag, int co case PCHAN_COLOR_LINEBONE: { /* inner part in background color or constraint */ - if ((bcolor == NULL) || (bcolor->flag & TH_WIRECOLOR_CONSTCOLS)) { + if ( (constflag) && ((bcolor==NULL) || (bcolor->flag & TH_WIRECOLOR_CONSTCOLS)) ) { if (constflag & PCHAN_HAS_STRIDE) glColor3ub(0, 0, 200); else if (constflag & PCHAN_HAS_TARGET) glColor3ub(255, 150, 0); else if (constflag & PCHAN_HAS_IK) glColor3ub(255, 255, 0); |