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:
parent
f271d85b86
commit
5dd63a977f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue