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

Unified Diff: source/blender/editors/sculpt_paint/paint_image.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/editors/sculpt_paint/paint_image.c
===================================================================
--- source/blender/editors/sculpt_paint/paint_image.c (revision 41036)
+++ source/blender/editors/sculpt_paint/paint_image.c (working copy)
@@ -3001,7 +3001,7 @@
Object *camera= ps->scene->camera;
/* dont actually use these */
- float _viewdx, _viewdy, _ycor, _lens=0.0f;
+ float _viewdx, _viewdy, _ycor, _lens=0.0f, _sensor_x=0.0f;
rctf _viewplane;
/* viewmat & viewinv */
@@ -3013,7 +3013,7 @@
object_camera_mode(&ps->scene->r, camera);
object_camera_matrix(&ps->scene->r, camera, ps->winx, ps->winy, 0,
winmat, &_viewplane, &ps->clipsta, &ps->clipend,
- &_lens, &_ycor, &_viewdx, &_viewdy);
+ &_lens, &_sensor_x, &_ycor, &_viewdx, &_viewdy);
ps->is_ortho= (ps->scene->r.mode & R_ORTHO) ? 1 : 0;
}

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