Fix for renderer returned from internal MayaAPI as "mayaSoftware", but has the value "mayasw" when used as flag to render command line and on the container images

This commit is contained in:
David Kydd 2019-08-09 19:51:06 +12:00
Родитель bd0176d149
Коммит 68e43a9fe0
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -10,12 +10,12 @@ from azurebatchmayaapi import MayaAPI as maya
class ContainerImageUI(object):
def __init__(self, poolImageFilter, parent, image_config, renderer, local_maya_version):
def __init__(self, poolImageFilter, parent, image_config, local_maya_version, renderer):
self.renderer = "mayasw" if renderer == "mayaSoftware" or renderer == "" else renderer
self.poolImageFilter = poolImageFilter
self.renderer = renderer
self.selected_os = None
self.selected_maya = None
self.selected_vray = None

Просмотреть файл

@ -326,4 +326,4 @@ class EnvironmentUI(object):
current_renderer = str(utils.get_current_scene_renderer())
mayaVersion = maya.about(version=True)
self.containerImageUI = ContainerImageUI(self.poolImageFilter, self.rendernode_config, self.image_config, current_renderer, mayaVersion)
self.containerImageUI = ContainerImageUI(self.poolImageFilter, self.rendernode_config, self.image_config, mayaVersion, current_renderer)