* small fix for a bug in the header render baking menu, baking texture only was doing the wrong thing.
This commit is contained in:
@@ -1742,7 +1742,7 @@ static uiBlock *info_timelinemenu(void *arg_unused)
|
||||
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 @@ static uiBlock *info_render_bakemenu(void *arg_unused)
|
||||
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, "");
|
||||
|
||||
Reference in New Issue
Block a user