Fix preview always True.

This commit is contained in:
Toke Stuart Jepsen 2020-07-16 11:44:02 +01:00
parent 19dadf5b0b
commit 4d1f5b12dc

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])