mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
Merged in feature/PYPE-187_not_update_templates (pull request #72)
project templates are used if templates already exist in project Approved-by: Milan Kolar <milan@orbi.tools>
This commit is contained in:
commit
5d2c37d9d6
1 changed files with 12 additions and 0 deletions
|
|
@ -114,6 +114,18 @@ def import_to_avalon(
|
|||
output['errors'] = errors
|
||||
return output
|
||||
|
||||
else:
|
||||
# not override existing templates!
|
||||
templates = av_project['config'].get('template', None)
|
||||
if templates is not None:
|
||||
for key, value in config['template'].items():
|
||||
if (
|
||||
key in templates and
|
||||
templates[key] is not None and
|
||||
templates[key] != value
|
||||
):
|
||||
config['template'][key] = templates[key]
|
||||
|
||||
projectId = av_project['_id']
|
||||
|
||||
data = get_data(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue