Fix for #1806
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user