diff options
author | Thomas Dinges <blender@dingto.org> | 2013-01-17 23:52:59 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-01-17 23:52:59 +0400 |
commit | 61ce87e7410b564edb7eaf73f37b944542f42d35 (patch) | |
tree | c8f30aba611ea0a1126eea22873be9e4a85247d0 /intern | |
parent | 9e8c50921338fd187be5e707aa3bf4398c0100b7 (diff) |
Cycles:
* Fix for [#33909]. If "Progressive" checkbox was disabled but device was GPU, it still used the amount of "aa_samples" instead of "samples"
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/blender/blender_sync.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/intern/cycles/blender/blender_sync.cpp b/intern/cycles/blender/blender_sync.cpp index a2a8c23404f..7ad663b7e26 100644 --- a/intern/cycles/blender/blender_sync.cpp +++ b/intern/cycles/blender/blender_sync.cpp @@ -359,22 +359,22 @@ SessionParams BlenderSync::get_session_params(BL::RenderEngine b_engine, BL::Use params.background = background; /* samples */ - if(get_boolean(cscene, "progressive")) { + if(get_boolean(cscene, "progressive") == 0 && params.device.type == DEVICE_CPU){ if(background) { - params.samples = get_int(cscene, "samples"); + params.samples = get_int(cscene, "aa_samples"); } else { - params.samples = get_int(cscene, "preview_samples"); + params.samples = get_int(cscene, "preview_aa_samples"); if(params.samples == 0) params.samples = INT_MAX; } } else { if(background) { - params.samples = get_int(cscene, "aa_samples"); + params.samples = get_int(cscene, "samples"); } else { - params.samples = get_int(cscene, "preview_aa_samples"); + params.samples = get_int(cscene, "preview_samples"); if(params.samples == 0) params.samples = INT_MAX; } |