[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13430] trunk/blender/source/blender/src/ drawview.c: === Custom Orientations ===

Martin Poirier theeth at yahoo.com
Mon Jan 28 02:15:21 CET 2008


Revision: 13430
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13430
Author:   theeth
Date:     2008-01-28 02:15:21 +0100 (Mon, 28 Jan 2008)

Log Message:
-----------
=== Custom Orientations ===

Change selection icon in the panel to the more appropriate Checkbox icon.

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

Modified: trunk/blender/source/blender/src/drawview.c
===================================================================
--- trunk/blender/source/blender/src/drawview.c	2008-01-28 01:02:38 UTC (rev 13429)
+++ trunk/blender/source/blender/src/drawview.c	2008-01-28 01:15:21 UTC (rev 13430)
@@ -2295,7 +2295,12 @@
 	for (index = V3D_MANIP_CUSTOM, ts = transform_spaces->first ; ts ; ts = ts->next, index++) {
 
 		BIF_ThemeColor(TH_BUT_ACTION);
-		but = uiDefIconButS(block,ROW, REDRAWHEADERS, ICON_RIGHTARROW_THIN, xco,yco,XIC,YIC, &G.vd->twmode, 5.0, (float)index, 0, 0, "Use this Custom Transform Orientation");
+		if (G.vd->twmode == index) {
+			but = uiDefIconButS(block,ROW, REDRAWHEADERS, ICON_CHECKBOX_HLT, xco,yco,XIC,YIC, &G.vd->twmode, 5.0, (float)index, 0, 0, "Use this Custom Transform Orientation");
+		}
+		else {
+			but = uiDefIconButS(block,ROW, REDRAWHEADERS, ICON_CHECKBOX_DEHLT, xco,yco,XIC,YIC, &G.vd->twmode, 5.0, (float)index, 0, 0, "Use this Custom Transform Orientation");
+		}
 		uiButSetFunc(but, selectTransformOrientation_func, ts, NULL);
 		uiDefBut(block, TEX, 0, "", xco+=XIC, yco,100+XIC,20, &ts->name, 0, 30, 0, 0, "Edits the name of this Transform Orientation");
 		but = uiDefIconBut(block, BUT, REDRAWVIEW3D, ICON_X, xco+=100+XIC,yco,XIC,YIC, 0, 0, 0, 0, 0, "Deletes this Transform Orientation");





More information about the Bf-blender-cvs mailing list