Page Menu
Home
Search
Configure Global Search
Log In
Files
F3598
rendermenus.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Ralf Hölzemer (cheleb)
Nov 13 2013, 1:11 PM
Size
3 KB
Subscribers
None
rendermenus.txt
View Options
Index: source/blender/src/header_info.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/header_info.c,v
retrieving revision 1.89
diff -u -r1.89 header_info.c
--- source/blender/src/header_info.c 27 Jun 2006 12:54:16 -0000 1.89
+++ source/blender/src/header_info.c 10 Jul 2006 15:15:46 -0000
@@ -1577,6 +1577,15 @@
case 7:
extern_set_butspace(F10KEY, 1);
break;
+ case 8: /* preview render */
+ if(curarea->next->spacetype== SPACE_VIEW3D)
+ toggle_blockhandler(curarea->next, VIEW3D_HANDLER_PREVIEW, 0);
+ else if(curarea->next->spacetype== SPACE_IMAGE)
+ toggle_blockhandler(curarea->next, IMAGE_HANDLER_PREVIEW, 0);
+ else return;
+ scrarea_queue_winredraw(curarea->next);
+ break;
+
}
allqueue(REDRAWINFO, 0);
}
@@ -1593,6 +1602,7 @@
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Render Current Frame|F12", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 0, "");
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Render Animation|Ctrl F12", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 1, "");
+ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Render Preview|Shift P", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 8, "");
uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
Index: source/blender/src/toolbox.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/toolbox.c,v
retrieving revision 1.135
diff -u -r1.135 toolbox.c
--- source/blender/src/toolbox.c 27 Jun 2006 11:55:33 -0000 1.135
+++ source/blender/src/toolbox.c 10 Jul 2006 15:15:47 -0000
@@ -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"
@@ -1452,20 +1453,34 @@
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 *********************** */
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f0/55/46b59ee9313f107d0519625dd893
Event Timeline
Log In to Comment