Fix opengl rendering always looking through camera

Actually check if we have a camera and looking through it before
rendering in multiview.
This commit is contained in:
Antonis Ryakiotakis 2015-04-30 15:06:10 +02:00
parent f271d85b86
commit 5dd63a977f
1 changed files with 1 additions and 1 deletions

View File

@ -3168,7 +3168,7 @@ void ED_view3d_draw_offscreen(
}
/* setup view matrices before fx or unbinding the offscreen buffers will cause issues */
if ((viewname != NULL && viewname[0] != '\0') && (viewmat == NULL))
if ((viewname != NULL && viewname[0] != '\0') && (viewmat == NULL) && rv3d->persp == RV3D_CAMOB && v3d->camera)
view3d_stereo3d_setup_offscreen(scene, v3d, ar, winmat, viewname);
else
view3d_main_area_setup_view(scene, v3d, ar, viewmat, winmat);