Muti-View: viewport crashes when empty is active camera - reported over IRC by Campbell Barton

This commit is contained in:
Dalai Felinto 2015-04-27 10:39:09 -03:00
parent b315fcb7ed
commit f809eef968
1 changed files with 1 additions and 1 deletions

View File

@ -3570,7 +3570,7 @@ static bool view3d_stereo3d_active(const bContext *C, Scene *scene, View3D *v3d,
if (WM_stereo3d_enabled(win, true) == false)
return false;
if ((v3d->camera == NULL) || rv3d->persp != RV3D_CAMOB)
if ((v3d->camera == NULL) || (v3d->camera->type != OB_CAMERA) || rv3d->persp != RV3D_CAMOB)
return false;
if (scene->r.views_format & SCE_VIEWS_FORMAT_MULTIVIEW) {