fix [#26906] Panorama Button (Camera Data Properties)
[blender-staging.git] / source / blender / render / intern / source / initrender.c
index e0440528168fd7299aafd00f429ab62507fa6abc..f87cde27f02aa327b87b9d6939aceaffdd1d98f5 100644 (file)
@@ -451,6 +451,8 @@ void make_sample_tables(Render *re)
 /* per render, there's one persistant viewplane. Parts will set their own viewplanes */
 void RE_SetCamera(Render *re, Object *camera)
 {
+       object_camera_mode(&re->r, camera);
+
        object_camera_matrix(&re->r, camera, re->winx, re->winy, re->flag & R_SEC_FIELD,
                        re->winmat, &re->viewplane, &re->clipsta, &re->clipend,
                        &re->lens, &re->ycor, &re->viewdx, &re->viewdy);