mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
Merge pull request #1158 from pypeclub/bugfix/anatomy_types_fix
Temporary fix of short names from settings
This commit is contained in:
commit
8450e1b5d5
1 changed files with 3 additions and 4 deletions
|
|
@ -1110,9 +1110,7 @@ class SyncEntitiesFactory:
|
|||
project_name = self.entities_dict[self.ft_project_id]["name"]
|
||||
project_anatomy_data = get_anatomy_settings(project_name)
|
||||
|
||||
task_type_mapping = (
|
||||
project_anatomy_data["attributes"]["task_short_names"]
|
||||
)
|
||||
task_type_mapping = project_anatomy_data["tasks"]
|
||||
|
||||
not_set_ids = []
|
||||
for id, entity_dict in self.entities_dict.items():
|
||||
|
|
@ -1152,7 +1150,8 @@ class SyncEntitiesFactory:
|
|||
tasks = {}
|
||||
for task_type in task_types:
|
||||
task_type_name = task_type["name"]
|
||||
short_name = task_type_mapping.get(task_type_name)
|
||||
task_type_def = task_type_mapping.get(task_type_name) or {}
|
||||
short_name = task_type_def.get("short_name")
|
||||
tasks[task_type_name] = {
|
||||
"short_name": short_name or task_type_name
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue