mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-03 09:24:57 +01:00
add a task name verification for template loader
This commit is contained in:
parent
ba1abf8b15
commit
ef7627199e
1 changed files with 2 additions and 0 deletions
|
|
@ -160,6 +160,8 @@ class AbstractTemplateLoader:
|
|||
for prf in profiles:
|
||||
if prf['task_types'] and task_type not in prf['task_types']:
|
||||
continue
|
||||
if prf['tasks'] and task_name not in prf['tasks']:
|
||||
continue
|
||||
path = prf['path']
|
||||
break
|
||||
else: # IF no template were found (no break happened)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue