Line-bones without any constraints-colours/custom-colours were being drawn the wrong colour (i.e.  they insides were drawn black)
This commit is contained in:
Joshua Leung 2008-01-27 06:08:43 +00:00
parent 8c59520060
commit c8971388a7

@ -276,7 +276,7 @@ static short set_pchan_glColor (short colCode, int armflag, int boneflag, int co
case PCHAN_COLOR_LINEBONE: case PCHAN_COLOR_LINEBONE:
{ {
/* inner part in background color or constraint */ /* 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); if (constflag & PCHAN_HAS_STRIDE) glColor3ub(0, 0, 200);
else if (constflag & PCHAN_HAS_TARGET) glColor3ub(255, 150, 0); else if (constflag & PCHAN_HAS_TARGET) glColor3ub(255, 150, 0);
else if (constflag & PCHAN_HAS_IK) glColor3ub(255, 255, 0); else if (constflag & PCHAN_HAS_IK) glColor3ub(255, 255, 0);