Update openpype/hosts/maya/api/lib.py

Simplify key test.

Co-authored-by: Ondřej Samohel <33513211+antirotor@users.noreply.github.com>
This commit is contained in:
Allan I. A 2022-06-23 19:18:28 +03:00 committed by GitHub
parent bb339e0bbd
commit f2ef34c1a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2548,11 +2548,7 @@ def load_capture_preset(data=None):
temp_options['headsUpDisplay'] = True
if key == 'hwFogEnable':
if preset[id][key] is True:
temp_options2['hwFogEnable'] = True
else:
temp_options2['hwFogEnable'] = False
temp_options2['hwFogEnable'] = preset[id][key] or False
if key == 'hwFogStart':
temp_options2['hwFogStart'] = preset[id][key]