mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
global: allowing build workfile from workfile options schema
This commit is contained in:
parent
5c4446ef0c
commit
97ef333354
1 changed files with 16 additions and 5 deletions
|
|
@ -756,11 +756,22 @@ class BuildWorkfile:
|
|||
host_name = avalon.api.registered_host().__name__.rsplit(".", 1)[-1]
|
||||
presets = get_project_settings(avalon.io.Session["AVALON_PROJECT"])
|
||||
# Get presets for host
|
||||
build_presets = (
|
||||
presets.get(host_name, {})
|
||||
.get("workfile_build")
|
||||
.get("profiles")
|
||||
)
|
||||
# for backward compatibility this has to have exception
|
||||
# if the concept will be agreed then this needs to be
|
||||
# refactored without exception
|
||||
if "nuke" in host_name:
|
||||
build_presets = (
|
||||
presets.get(host_name, {})
|
||||
.get("workfile_options")
|
||||
.get("builder_profiles")
|
||||
)
|
||||
else:
|
||||
build_presets = (
|
||||
presets.get(host_name, {})
|
||||
.get("workfile_build")
|
||||
.get("profiles")
|
||||
)
|
||||
|
||||
if not build_presets:
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue