diff options
author | Ton Roosendaal <ton@blender.org> | 2006-07-11 13:07:19 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-07-11 13:07:19 +0400 |
commit | d941fd7d6eb98906e70aa33adfd7a8062db1dea2 (patch) | |
tree | 4b51fe15eda3b9abc9bdd26ecbb008103e470dbe /source/blender/src/toolbox.c | |
parent | a8ad9880f4b40326a26ff2e0609444e12413dcce (diff) |
Bug + patch #4655
- Added "Shift+P" note in 3d window menu for preview panel
- Added Preview, passepartout in spacebar toolbox
- Info pulldown "Render" -> "Render buttons" did cycle, should not.
Diffstat (limited to 'source/blender/src/toolbox.c')
-rw-r--r-- | source/blender/src/toolbox.c | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c index 218252704e4..b3352cbc9a4 100644 --- a/source/blender/src/toolbox.c +++ b/source/blender/src/toolbox.c @@ -66,6 +66,7 @@ #include "DNA_scene_types.h" #include "DNA_userdef_types.h" #include "DNA_view3d_types.h" +#include "DNA_camera_types.h" #include "BLI_blenlib.h" #include "BLI_arithb.h" @@ -1465,20 +1466,34 @@ static void tb_do_render(void *arg, int event){ case 3: /* render anim */ BIF_do_render(1); break; - case 4: /* render anim */ - if(G.scene->r.scemode & R_PASSEPARTOUT) G.scene->r.scemode &= ~R_PASSEPARTOUT; - else G.scene->r.scemode |= R_PASSEPARTOUT; + case 4: /* passepartout */ + if(G.vd->camera==NULL) return; + + Camera *ca= NULL; + if(G.vd->camera->type==OB_CAMERA) + ca= G.vd->camera->data; + else return; + + if (ca && (ca->flag & CAM_SHOWPASSEPARTOUT)) + ca->flag &= ~CAM_SHOWPASSEPARTOUT; + else + ca->flag |= CAM_SHOWPASSEPARTOUT; allqueue(REDRAWVIEW3D, 0); break; + case 5: /*preview render */ + toggle_blockhandler(curarea, VIEW3D_HANDLER_PREVIEW, 0); + scrarea_queue_winredraw(curarea); + break; } } static TBitem tb_render[]= { { 0, "Passepartout", 4, NULL}, - { 0, "Set Border", 1, NULL}, - { 0, "SEPR", 0, NULL}, + { 0, "Set Border|Shift B", 1, NULL}, + { 0, "SEPR", 0, NULL}, { 0, "Render|F12", 2, NULL}, - { 0, "Anim", 3, NULL}, + { 0, "Anim|Ctrl F12", 3, NULL}, + { 0, "Preview|Shift P", 5, NULL}, { -1, "", 0, tb_do_render}}; /* ************************* NODES *********************** */ |