From fcdf1402ff90fd66ad735bf3c327fb87f61b4e43 Mon Sep 17 00:00:00 2001 From: wikoreman Date: Fri, 24 Aug 2018 17:14:37 +0200 Subject: [PATCH] refactored for PEP08 --- colorbleed/plugins/maya/publish/collect_renderlayers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/colorbleed/plugins/maya/publish/collect_renderlayers.py b/colorbleed/plugins/maya/publish/collect_renderlayers.py index 29c5156175..cfd3a18632 100644 --- a/colorbleed/plugins/maya/publish/collect_renderlayers.py +++ b/colorbleed/plugins/maya/publish/collect_renderlayers.py @@ -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