Merge pull request #355 from tokejepsen/2.x/bugfix/preview_always_true

Fix preview always True.
This commit is contained in:
Milan Kolar 2020-07-17 17:57:57 +02:00 committed by GitHub
commit 398e1c7b28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -488,7 +488,7 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
if bake_render_path:
preview = False
if "celaction" in self.hosts:
if "celaction" in pyblish.api.registered_hosts():
preview = True
staging = os.path.dirname(list(collection)[0])