Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(492)

Unified Diff: source/blender/blenlib/intern/uvproject.c

Issue 5274047: Camera sensor size Base URL: https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Patch Set: Updated patchset. Hope it'll work now Created 12 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 */

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b