diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2019-01-04 16:15:23 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2019-01-04 16:27:28 +0300 |
commit | 1753177ad8acfabbcc74c3d8e20fa874f2b97167 (patch) | |
tree | 67416f72200341afe23f6f0b17db9d9543cb7b16 /source/blender/blenloader | |
parent | 32ae3abbab266fb4bccdad2568fd5ec2cc28b843 (diff) |
Partial fix T60148: EEVEE hangs when anamorphic bokeh is too low
Fixed by setting the limit to the original limit I used for Cycles.
Rendering still goes extremely slow when bokeh is lower than 1.0.
But at least now it is "waitable". With lower numbers than 0.01 I don't
think we would ever get a render to finish.
@fclem feel free to address the real root of the problem, but I'm afraid
it may be a limitation of the algorithm you are using.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index d8ed41c4d55..3b2950891f7 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -2741,5 +2741,12 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain) } } } + + /* Fix anamorphic bokeh eevee rna limits.*/ + for (Camera *ca = bmain->camera.first; ca; ca = ca->id.next) { + if (ca->gpu_dof.ratio < 0.01f) { + ca->gpu_dof.ratio = 0.01f; + } + } } } |