diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-11-29 05:12:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-11-29 05:18:04 +0300 |
commit | dd34b7a71c2e8cfc490070c68bf293fb6e1734f4 (patch) | |
tree | 54cb12419c0dd1712bb93857f0607e131acc440e /source/blender/blenkernel/intern | |
parent | 6278adc3cab7911d11b64f3ae795dc527041343d (diff) |
Comment: explain viewport & render pixel-size
It wasn't all that clear why both pixel-sizes are needed.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/camera.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/camera.c b/source/blender/blenkernel/intern/camera.c index 30f17582bf5..9cb553aa27b 100644 --- a/source/blender/blenkernel/intern/camera.c +++ b/source/blender/blenkernel/intern/camera.c @@ -337,6 +337,8 @@ void BKE_camera_params_compute_viewplane(CameraParams *params, int winx, int win viewplane.ymin *= pixsize; viewplane.ymax *= pixsize; + /* Used for rendering (offset by near-clip with perspective views), passed to RE_SetPixelSize. + * For viewport drawing 'RegionView3D.pixsize'. */ params->viewdx = pixsize; params->viewdy = params->ycor * pixsize; params->viewplane = viewplane; |