Skip to content

Commit

Permalink
use pixel filter NONE when using Bidir in viewport + denoiser in view…
Browse files Browse the repository at this point in the history
…port
  • Loading branch information
Theverat committed Sep 25, 2019
1 parent 0257ff7 commit c1bb9e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion export/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def convert(exporter, scene, context=None, engine=None):
config = scene.luxcore.config
width, height = utils.calc_filmsize(scene, context)
is_viewport_render = context is not None
denoiser_enabled = ((not is_viewport_render and scene.luxcore.denoiser.enabled)
or (is_viewport_render and scene.luxcore.viewport.denoise))

if is_viewport_render:
# Viewport render
Expand All @@ -31,7 +33,7 @@ def convert(exporter, scene, context=None, engine=None):
# Final render
luxcore_engine, sampler = _convert_final_engine(scene, definitions, config)

if luxcore_engine == "BIDIRCPU" and scene.luxcore.denoiser.enabled:
if luxcore_engine == "BIDIRCPU" and denoiser_enabled:
filter_type = "NONE"
else:
filter_type = config.filter
Expand Down

0 comments on commit c1bb9e8

Please sign in to comment.