♻️ flipping default value and changing settings access

This commit is contained in:
Ondrej Samohel 2022-10-07 18:31:13 +02:00
parent 467a6d89c8
commit 53487001c5
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
2 changed files with 7 additions and 6 deletions

View file

@ -201,11 +201,12 @@ class MayaSubmitDeadline(abstract_submit_deadline.AbstractSubmitDeadline):
# Set it to default Maya behaviour if it cannot be determined
# from instance (but it should be, by the Collector).
default_rs_include_lights = instance.context.data\
.get('project_settings')\
.get('maya')\
.get('RenderSettings')\
.get('enable_all_lights')
default_rs_include_lights = (
instance.context.data['project_settings']
['maya']
['RenderSettings']
['enable_all_lights']
)
rs_include_lights = instance.data.get(
"renderSetupIncludeLights", default_rs_include_lights)

View file

@ -35,7 +35,7 @@
"RenderSettings": {
"apply_render_settings": true,
"default_render_image_folder": "renders",
"enable_all_lights": false,
"enable_all_lights": true,
"aov_separator": "underscore",
"reset_current_frame": false,
"arnold_renderer": {