mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Change key check placement.
This commit is contained in:
parent
f497956c5f
commit
98b912f0b3
1 changed files with 11 additions and 14 deletions
|
|
@ -2525,10 +2525,11 @@ def load_capture_preset(data=None):
|
|||
if key == 'ssaoEnable':
|
||||
if preset[id][key] is True:
|
||||
temp_options2['ssaoEnable'] = True
|
||||
temp_options2['ssaoSamples'] = preset[id][key]
|
||||
else:
|
||||
temp_options2['ssaoEnable'] = False
|
||||
temp_options2['ssaoSamples'] = preset[id][key]
|
||||
|
||||
if key == 'ssaoSamples':
|
||||
temp_options2['ssaoSamples'] = preset[id][key]
|
||||
|
||||
if key == 'ssaoAmount':
|
||||
temp_options2['ssaoAmount'] = preset[id][key]
|
||||
|
|
@ -2549,20 +2550,16 @@ def load_capture_preset(data=None):
|
|||
if key == 'hwFogEnable':
|
||||
if preset[id][key] is True:
|
||||
temp_options2['hwFogEnable'] = True
|
||||
temp_options2['hwFogStart'] = preset[id][key]
|
||||
temp_options2['hwFogEnd'] = preset[id][key]
|
||||
temp_options2['hwFogAlpha'] = preset[id][key]
|
||||
temp_options2['hwFogFalloff'] = preset[id][key]
|
||||
else:
|
||||
temp_options2['hwFogEnable'] = False
|
||||
|
||||
if key == 'hwFogStart':
|
||||
temp_options2['hwFogStart'] = preset[id][key]
|
||||
|
||||
if key == 'hwFogEnd':
|
||||
temp_options2['hwFogEnd'] = preset[id][key]
|
||||
|
||||
if key == 'hwFogAlpha':
|
||||
temp_options2['hwFogAlpha'] = preset[id][key]
|
||||
|
||||
if key == 'hwFogFalloff':
|
||||
temp_options2['hwFogFalloff'] = preset[id][key]
|
||||
temp_options2['hwFogStart'] = preset[id][key]
|
||||
temp_options2['hwFogEnd'] = preset[id][key]
|
||||
temp_options2['hwFogAlpha'] = preset[id][key]
|
||||
temp_options2['hwFogFalloff'] = preset[id][key]
|
||||
|
||||
if key == 'motionBlurEnable':
|
||||
if preset[id][key] is True:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue