[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13419] trunk/blender/source/blender/src/ drawarmature.c: Bugfix:

Joshua Leung aligorith at gmail.com
Sun Jan 27 07:08:44 CET 2008


Revision: 13419
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13419
Author:   aligorith
Date:     2008-01-27 07:08:43 +0100 (Sun, 27 Jan 2008)

Log Message:
-----------
Bugfix:

Line-bones without any constraints-colours/custom-colours were being drawn the wrong colour (i.e.  they insides were drawn black)

Modified Paths:
--------------
    trunk/blender/source/blender/src/drawarmature.c

Modified: trunk/blender/source/blender/src/drawarmature.c
===================================================================
--- trunk/blender/source/blender/src/drawarmature.c	2008-01-27 03:21:24 UTC (rev 13418)
+++ trunk/blender/source/blender/src/drawarmature.c	2008-01-27 06:08:43 UTC (rev 13419)
@@ -276,7 +276,7 @@
 	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);





More information about the Bf-blender-cvs mailing list