refactored for PEP08

This commit is contained in:
wikoreman 2018-08-24 17:14:37 +02:00
parent 148441081b
commit fcdf1402ff

View file

@ -152,7 +152,10 @@ class CollectMayaRenderlayers(pyblish.api.ContextPlugin):
options["extendFrames"] = extend_frames
options["overrideExistingFrame"] = override_frames
maya_render_plugin = "MayaBatch" if attributes.get("useMayaBatch", True) else "MayaCmd"
maya_render_plugin = "MayaBatch"
if not attributes.get("useMayaBatch", True):
maya_render_plugin = "MayaCmd"
options["mayaRenderPlugin"] = maya_render_plugin
return options