diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-07-24 18:57:24 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-07-24 19:05:30 +0300 |
commit | cfaea24117f2ef3f1e2ce9bc0ebd620c27bfeba5 (patch) | |
tree | 34791c3a7d8cb403b671b8044cdf157a87d3f9bc /source/blender/blenkernel/intern | |
parent | 45addee39e5510d7fd2c1f69ffa77cd96996045d (diff) |
Fix T55754: DOF with new Camera is not working
Was due to non initialized gpu_dof.ratio
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/camera.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/camera.c b/source/blender/blenkernel/intern/camera.c index 4203e0455f8..87b65601534 100644 --- a/source/blender/blenkernel/intern/camera.c +++ b/source/blender/blenkernel/intern/camera.c @@ -76,6 +76,9 @@ void BKE_camera_init(Camera *cam) cam->flag |= CAM_SHOWPASSEPARTOUT; cam->passepartalpha = 0.5f; + cam->gpu_dof.fstop = 128.0f; + cam->gpu_dof.ratio = 1.0f; + /* stereoscopy 3d */ cam->stereo.interocular_distance = 0.065f; cam->stereo.convergence_distance = 30.f * 0.065f; |