Skip to content

Commit

Permalink
feat: Associate DynamicSettingsWidget to all jobs from the config file
Browse files Browse the repository at this point in the history
  • Loading branch information
KernAttila committed Mar 28, 2023
1 parent 9ec6c19 commit e2847f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cuesubmit/cuesubmit/JobTypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,16 @@ class JobTypes(object):
MAYA = 'Maya'
NUKE = 'Nuke'
BLENDER = 'Blender'
FROM_CONFIG = Constants.RENDER_CMDS.keys()
FROM_CONFIG_FILE = Constants.RENDER_CMDS.keys()

SETTINGS_MAP = {
SHELL: SettingsWidgets.ShellSettings,
MAYA: SettingsWidgets.BaseMayaSettings,
NUKE: SettingsWidgets.BaseNukeSettings,
BLENDER: SettingsWidgets.BaseBlenderSettings,
}
SETTINGS_MAP.update(Constants.RENDER_CMDS)
for jobType in FROM_CONFIG_FILE:
SETTINGS_MAP[jobType] = SettingsWidgets.DynamicSettingsWidget

def __init__(self):
pass
Expand Down

0 comments on commit e2847f4

Please sign in to comment.