diff options
author | Ton Roosendaal <ton@blender.org> | 2006-06-19 15:21:42 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-06-19 15:21:42 +0400 |
commit | 2a2c5e7f4eea8818b9b235210f0806d1c2903aa3 (patch) | |
tree | a203e41b008c60baf8493b096d0223adbca4035c /source/blender/src/buttons_scene.c | |
parent | f03ea10cee7275b74db4785bced564dfea41d228 (diff) |
Bugfix #4354
Fix for old (post 2.3) annoyance in UI; on redraw of the entire buttons
window, the active button (with highlight) was detected wrong. Was just
a matrix calculation on wrong moment. :)
Also: fixed tooltip for transparent material "add" option. It was talking
about "Glow", a confusing description.
Diffstat (limited to 'source/blender/src/buttons_scene.c')
-rw-r--r-- | source/blender/src/buttons_scene.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/buttons_scene.c b/source/blender/src/buttons_scene.c index c5ed5e70e71..026a2a49281 100644 --- a/source/blender/src/buttons_scene.c +++ b/source/blender/src/buttons_scene.c @@ -1752,7 +1752,7 @@ static char *scene_layer_menu(void) return str; } -static void draw_3d_layer_buttons(uiBlock *block, unsigned int *poin, short xco, short yco, short dx, short dy, int event) +static void draw_3d_layer_buttons(uiBlock *block, unsigned int *poin, short xco, short yco, short dx, short dy) { uiBut *bt; long a; @@ -1800,7 +1800,7 @@ static void render_panel_layers(void) /* first, as reminder, the scene layers */ uiDefBut(block, LABEL, 0, "Scene:", 10,170,100,20, NULL, 0, 0, 0, 0, ""); - draw_3d_layer_buttons(block, &G.scene->lay, 130, 170, 35, 30, B_LAY); + draw_3d_layer_buttons(block, &G.scene->lay, 130, 170, 35, 30); /* layer menu, name, delete button */ uiBlockBeginAlign(block); @@ -1818,7 +1818,7 @@ static void render_panel_layers(void) /* RenderLayer visible-layers */ uiDefBut(block, LABEL, 0, "Layer:", 10,95,100,20, NULL, 0, 0, 0, 0, ""); - draw_3d_layer_buttons(block, &srl->lay, 130, 95, 35, 30, B_NOP); + draw_3d_layer_buttons(block, &srl->lay, 130, 95, 35, 30); uiBlockBeginAlign(block); uiDefButBitS(block, TOG, SCE_LAY_SKY, B_NOP,"Sky", 10, 70, 40, 20, &srl->layflag, 0, 0, 0, 0, "Render Solid faces in this Layer"); |