mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
OP-4845 - temporary fix for missing Ayon template
Not sure if it was decided that Ayon won't have default 'render' template as OP does, but this should workaround it for testing. Needs to be fixed!
This commit is contained in:
parent
31f2ff680a
commit
bf831778d8
1 changed files with 7 additions and 1 deletions
|
|
@ -575,7 +575,13 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin,
|
|||
template_data["family"] = family
|
||||
template_data["version"] = version
|
||||
|
||||
render_templates = anatomy.templates_obj["render"]
|
||||
# temporary fix, Ayon Settings don't have 'render' template, but they
|
||||
# have "publish" TODO!!!
|
||||
template_name = "render"
|
||||
if os.environ.get("USE_AYON_SERVER") == '1':
|
||||
template_name = "publish"
|
||||
|
||||
render_templates = anatomy.templates_obj[template_name]
|
||||
if "folder" in render_templates:
|
||||
publish_folder = render_templates["folder"].format_strict(
|
||||
template_data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue