diff --git a/pype/plugins/global/publish/extract_burnin.py b/pype/plugins/global/publish/extract_burnin.py index 8cf54bfa4c..83ad4af1c2 100644 --- a/pype/plugins/global/publish/extract_burnin.py +++ b/pype/plugins/global/publish/extract_burnin.py @@ -58,7 +58,7 @@ class ExtractBurnin(pype.api.Extractor): if "representations" not in instance.data: raise RuntimeError("Burnin needs already created mov to work on.") - if self.profiles is None: + if self.use_legacy_code(instance): return self.legacy_process(instance) self.main_process(instance) @@ -71,6 +71,12 @@ class ExtractBurnin(pype.api.Extractor): self.log.debug(instance.data["representations"]) + def use_legacy_code(self, instance): + presets = instance.context.data.get("presets") + if presets is None and self.profiles is None: + return True + return "burnins" in (presets.get("tools") or {}) + def main_process(self, instance): # TODO get these data from context host_name = os.environ["AVALON_APP"] diff --git a/pype/version.py b/pype/version.py index 43ce13db01..334087f851 100644 --- a/pype/version.py +++ b/pype/version.py @@ -1 +1 @@ -__version__ = "2.9.0" +__version__ = "2.9.1"