[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14778] trunk/blender/source/blender/src/ buttons_object.c: added access to object alpha since there is alredy ipo access

Campbell Barton ideasman42 at gmail.com
Sat May 10 15:09:35 CEST 2008


Revision: 14778
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14778
Author:   campbellbarton
Date:     2008-05-10 15:09:34 +0200 (Sat, 10 May 2008)

Log Message:
-----------
added access to object alpha since there is alredy ipo access

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

Modified: trunk/blender/source/blender/src/buttons_object.c
===================================================================
--- trunk/blender/source/blender/src/buttons_object.c	2008-05-10 12:43:53 UTC (rev 14777)
+++ trunk/blender/source/blender/src/buttons_object.c	2008-05-10 13:09:34 UTC (rev 14778)
@@ -2730,7 +2730,7 @@
 	uiSetButLock(object_is_libdata(ob), ERROR_LIBDATA_MESSAGE);
 	
 	/* LAYERS */
-	xco= 80;
+	xco= 65;
 	dx= 35;
 	dy= 30;
 	
@@ -2752,7 +2752,10 @@
 	uiBlockEndAlign(block);
 	
 	/* Object Color */
-	uiDefButF(block, COL, REDRAWVIEW3D, "",	270, 165,30, 30, ob->col, 0, 0, 0, 0, "Object color, used when faces have the ObCol mode enabled");
+	uiBlockBeginAlign(block);
+	uiDefButF(block, COL, REDRAWVIEW3D, "",	250, 180, 50, 15, ob->col, 0, 0, 0, 0, "Object color, used when faces have the ObCol mode enabled");
+	uiDefButF(block, NUM, REDRAWVIEW3D, "A:", 250, 165, 50, 15, &ob->col[3], 0.0f, 1.0f, 10, 2, "Object alpha, used when faces have the ObCol mode enabled");
+	uiBlockEndAlign(block);	
 	
 	uiDefBut(block, LABEL, 0, "Drawtype",						10,120,100,20, NULL, 0, 0, 0, 0, "");
 	





More information about the Bf-blender-cvs mailing list