[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13571] trunk/blender/source/blender/src/ header_info.c: * small fix for a bug in the header render baking menu, baking texture only was doing the wrong thing.

Matt Ebb matt at mke3.net
Tue Feb 5 02:35:57 CET 2008


Revision: 13571
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13571
Author:   broken
Date:     2008-02-05 02:35:55 +0100 (Tue, 05 Feb 2008)

Log Message:
-----------
* small fix for a bug in the header render baking menu, baking texture only was doing the wrong thing.

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

Modified: trunk/blender/source/blender/src/header_info.c
===================================================================
--- trunk/blender/source/blender/src/header_info.c	2008-02-04 22:01:23 UTC (rev 13570)
+++ trunk/blender/source/blender/src/header_info.c	2008-02-05 01:35:55 UTC (rev 13571)
@@ -1742,7 +1742,7 @@
 void do_info_render_bakemenu(void *arg, int event)
 {
 	switch (event) {
-	case R_BAKE_TO_ACTIVE:
+	case 6:
 		G.scene->r.bake_flag ^= event;
 		break;
 	default:
@@ -1761,9 +1761,9 @@
 	uiBlockSetButmFunc(block, do_info_render_bakemenu, NULL);
 	
 	if(G.scene->r.bake_flag & R_BAKE_TO_ACTIVE) {
-		uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_HLT, "Selected to Active",		 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, R_BAKE_TO_ACTIVE, "");
+		uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_HLT, "Selected to Active",		 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 6, "");
 	} else {
-		uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_DEHLT, "Selected to Active",		 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, R_BAKE_TO_ACTIVE, "");
+		uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_DEHLT, "Selected to Active",		 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 6, "");
 	}
 	
 	uiDefBut(block, SEPR, 0, "",				0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");





More information about the Bf-blender-cvs mailing list