Index: source/blender/blenlib/intern/uvproject.c |
=================================================================== |
--- source/blender/blenlib/intern/uvproject.c (revision 41036) |
+++ source/blender/blenlib/intern/uvproject.c (working copy) |
@@ -143,7 +143,7 @@ |
uci.do_pano = (camera->flag & CAM_PANORAMA); |
uci.do_persp = (camera->type==CAM_PERSP); |
- uci.camangle= lens_to_angle(camera->lens) / 2.0f; |
+ uci.camangle= focallength_to_hfov(camera->lens, camera->sensor_x) / 2.0f; |
uci.camsize= uci.do_persp ? tanf(uci.camangle) : camera->ortho_scale; |
/* account for scaled cameras */ |