Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-07-24 18:57:24 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-07-24 19:05:30 +0300
commitcfaea24117f2ef3f1e2ce9bc0ebd620c27bfeba5 (patch)
tree34791c3a7d8cb403b671b8044cdf157a87d3f9bc /source/blender/blenkernel/intern/camera.c
parent45addee39e5510d7fd2c1f69ffa77cd96996045d (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/camera.c')
-rw-r--r--source/blender/blenkernel/intern/camera.c3
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;