svn merge ^/trunk/blender -r46300:46330
[blender.git] / source / blender / blenlib / intern / uvproject.c
index a630084e79d0eb85fad90ae2e8a17b2cf70bab5f..31229c76869409dc9439b080fb1e28831054923e 100644 (file)
@@ -138,7 +138,7 @@ ProjCameraInfo *BLI_uvproject_camera_info(Object *ob, float(*rotmat)[4], float w
        ProjCameraInfo uci;
        Camera *camera = ob->data;
 
-       uci.do_pano = (camera->type == CAM_PANO);
+       uci.do_pano = (camera->flag & CAM_PANORAMA);
        uci.do_persp = (camera->type == CAM_PERSP);
 
        uci.camangle = focallength_to_fov(camera->lens, camera->sensor_x) / 2.0f;