Update openpype/plugins/publish/collect_scene_version.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Petr Kalis 2022-01-31 10:45:18 +01:00 committed by GitHub
parent 4c695d9ebc
commit 69bfcd6a30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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