diff options
author | Ton Roosendaal <ton@blender.org> | 2006-07-12 18:51:30 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-07-12 18:51:30 +0400 |
commit | b9f4efe1c71753e7b0c3982984f994590ee78c64 (patch) | |
tree | fda25cb375f0645e555ea82c7f91c7c72b859870 /source/blender/src | |
parent | aa42dc28f19a3fa0f33d9ebd3a04cebec8590631 (diff) |
Camera pointer declaration in middle of code.... tsk!
Diffstat (limited to 'source/blender/src')
-rw-r--r-- | source/blender/src/toolbox.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c index b3352cbc9a4..2265ae46fcd 100644 --- a/source/blender/src/toolbox.c +++ b/source/blender/src/toolbox.c @@ -1467,9 +1467,10 @@ static void tb_do_render(void *arg, int event){ BIF_do_render(1); break; case 4: /* passepartout */ + { + Camera *ca= NULL; if(G.vd->camera==NULL) return; - Camera *ca= NULL; if(G.vd->camera->type==OB_CAMERA) ca= G.vd->camera->data; else return; @@ -1479,6 +1480,7 @@ static void tb_do_render(void *arg, int event){ else ca->flag |= CAM_SHOWPASSEPARTOUT; allqueue(REDRAWVIEW3D, 0); + } break; case 5: /*preview render */ toggle_blockhandler(curarea, VIEW3D_HANDLER_PREVIEW, 0); |