From 69bfcd6a305f976b3f4ee5f3f36c9e1ed2acbadb Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Mon, 31 Jan 2022 10:45:18 +0100 Subject: [PATCH] Update openpype/plugins/publish/collect_scene_version.py Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> --- openpype/plugins/publish/collect_scene_version.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openpype/plugins/publish/collect_scene_version.py b/openpype/plugins/publish/collect_scene_version.py index 56a6e3fb46..a81e85c1f5 100644 --- a/openpype/plugins/publish/collect_scene_version.py +++ b/openpype/plugins/publish/collect_scene_version.py @@ -35,9 +35,10 @@ class CollectSceneVersion(pyblish.api.ContextPlugin): def process(self, context): # tests should be close to regular publish as possible - if (context.data["hostName"] in self.skip_hosts_headless_publish - and os.environ.get("HEADLESS_PUBLISH") - and not os.environ.get("IS_TEST")): + if ( + os.environ.get("HEADLESS_PUBLISH") + and not os.environ.get("IS_TEST") + and context.data["hostName"] in self.skip_hosts_headless_publish): self.log.debug("Skipping for headless publishing") return