[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46151] branches/ge_candy/source/blender/ editors/interface/interface.c: Style changes in link highlighting code.

Matthew Smith mjdietel at gmail.com
Tue May 1 15:01:25 CEST 2012


Revision: 46151
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46151
Author:   mokazon
Date:     2012-05-01 13:01:24 +0000 (Tue, 01 May 2012)
Log Message:
-----------
Style changes in link highlighting code.

Modified Paths:
--------------
    branches/ge_candy/source/blender/editors/interface/interface.c

Modified: branches/ge_candy/source/blender/editors/interface/interface.c
===================================================================
--- branches/ge_candy/source/blender/editors/interface/interface.c	2012-05-01 12:51:17 UTC (rev 46150)
+++ branches/ge_candy/source/blender/editors/interface/interface.c	2012-05-01 13:01:24 UTC (rev 46151)
@@ -526,31 +526,30 @@
 
 	// Draw the inactive lines (lines with neither button being hovered over).
 	// As we go, remember if we see any active or selected lines.
-	int foundSelectLine = 0;
-	int foundActiveLine = 0;
+	int foundselectline = 0;
+	int foundactiveline = 0;
 	for (but=block->buttons.first; but; but=but->next) {
 		if(but->type==LINK && but->link) {
 			for (line=but->link->lines.first; line; line=line->next) {
 				if (!(line->from->flag & UI_ACTIVE) && !(line->to->flag & UI_ACTIVE))
 					ui_draw_linkline(line, 0);
 				else
-					foundActiveLine = 1;
+					foundactiveline = 1;
 
 				if ((line->from->flag & UI_SELECT) || (line->to->flag & UI_SELECT))
-					foundSelectLine = 1;
+					foundselectline = 1;
 			}
 		}
 	}	
 
 	// Draw any active lines (lines with either button being hovered over).
 	// Do this last so they appear on top of inactive lines.
-	if (foundActiveLine)
-	{
+	if (foundactiveline) {
 		for (but=block->buttons.first; but; but=but->next) {
 			if(but->type==LINK && but->link) {
 				for (line=but->link->lines.first; line; line=line->next) {
 					if ((line->from->flag & UI_ACTIVE) || (line->to->flag & UI_ACTIVE))
-						ui_draw_linkline(line, !foundSelectLine);
+						ui_draw_linkline(line, !foundselectline);
 				}
 			}
 		}	




More information about the Bf-blender-cvs mailing list