Merge branch 'hotfix/review_extractors'

This commit is contained in:
Milan Kolar 2020-06-01 20:36:08 +02:00
commit 8eb5f2ab9a
2 changed files with 8 additions and 2 deletions

View file

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

View file

@ -1 +1 @@
__version__ = "2.9.0"
__version__ = "2.9.1"