Muti-View: viewport crashes when empty is active camera - reported over IRC by Campbe...
authorDalai Felinto <dfelinto@gmail.com>
Mon, 27 Apr 2015 13:39:09 +0000 (10:39 -0300)
committerDalai Felinto <dfelinto@gmail.com>
Mon, 27 Apr 2015 13:41:40 +0000 (10:41 -0300)
source/blender/editors/space_view3d/view3d_draw.c

index 520ad4f89b4a84b4beeca58cb89ca51c6fc93439..af0bd8ec761d46056dca2e744ea30805f1c080c5 100644 (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) {