Fixed sample count when using branched path tracing

Thanks to dr. Sharybin for the patch.
This commit is contained in:
Sybren A. Stüvel 2017-03-07 11:00:23 +01:00
parent 843667e612
commit 5026dfc441

View File

@ -162,7 +162,11 @@ class FLAMENCO_OT_render(async_loop.AsyncModalOperatorMixin,
# Add extra settings specific to the job type # Add extra settings specific to the job type
if scene.flamenco_render_job_type == 'blender-render-progressive': if scene.flamenco_render_job_type == 'blender-render-progressive':
if scene.cycles.progressive == 'BRANCHED_PATH':
samples = scene.cycles.aa_samples
else:
samples = scene.cycles.samples samples = scene.cycles.samples
if scene.cycles.use_square_samples: if scene.cycles.use_square_samples:
samples **= 2 samples **= 2