View3d windows have 'unlock' option and 'localview', which was also
supported on render (F12 with mouse in window) to render only what is
visible there.
This didn't work very nice, with even code in render module to read from
interface variable. Removed that from render, and coded the exception
where it belongs, in renderwin.c
This commit is contained in:
2004-11-25 18:16:50 +00:00
parent 9928ecc642
commit 806ebc7c7a
2 changed files with 8 additions and 4 deletions

View File

@@ -942,7 +942,14 @@ void BIF_renderwin_make_active(void)
/* set up display, render an image or scene */
void BIF_do_render(int anim)
{
do_render(NULL, anim, 0);
/* if start render in 3d win, use layer from window (e.g also local view) */
if(curarea && curarea->spacetype==SPACE_VIEW3D) {
int lay= G.scene->lay;
G.scene->lay= G.vd->lay;
do_render(NULL, anim, 0);
G.scene->lay= lay;
}
else do_render(NULL, anim, 0);
}
/* set up display, render the current area view in an image */