mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
be specific about task custom attributes to avoid asset version's cust attrs
This commit is contained in:
parent
39058ab0b7
commit
b2dfb6c95b
2 changed files with 9 additions and 6 deletions
|
|
@ -1438,9 +1438,11 @@ class SyncToAvalonEvent(BaseEvent):
|
|||
if attr["entity_type"] != ent_info["entityType"]:
|
||||
continue
|
||||
|
||||
if ent_info["entityType"] != "show":
|
||||
if attr["object_type_id"] != ent_info["objectTypeId"]:
|
||||
continue
|
||||
if (
|
||||
ent_info["entityType"] == "task" and
|
||||
attr["object_type_id"] != ent_info["objectTypeId"]
|
||||
):
|
||||
continue
|
||||
|
||||
configuration_id = attr["id"]
|
||||
entity_type_conf_ids[entity_type] = configuration_id
|
||||
|
|
@ -1712,7 +1714,8 @@ class SyncToAvalonEvent(BaseEvent):
|
|||
|
||||
if ca_ent_type == "show":
|
||||
cust_attrs_by_obj_id[ca_ent_type][key] = cust_attr
|
||||
else:
|
||||
|
||||
elif ca_ent_type == "task":
|
||||
obj_id = cust_attr["object_type_id"]
|
||||
cust_attrs_by_obj_id[obj_id][key] = cust_attr
|
||||
|
||||
|
|
|
|||
|
|
@ -699,7 +699,7 @@ class SyncEntitiesFactory:
|
|||
if ca_ent_type == "show":
|
||||
avalon_attrs[ca_ent_type][key] = cust_attr["default"]
|
||||
avalon_attrs_ca_id[ca_ent_type][key] = cust_attr["id"]
|
||||
else:
|
||||
elif ca_ent_type == "task":
|
||||
obj_id = cust_attr["object_type_id"]
|
||||
avalon_attrs[obj_id][key] = cust_attr["default"]
|
||||
avalon_attrs_ca_id[obj_id][key] = cust_attr["id"]
|
||||
|
|
@ -708,7 +708,7 @@ class SyncEntitiesFactory:
|
|||
if ca_ent_type == "show":
|
||||
attrs_per_entity_type[ca_ent_type][key] = cust_attr["default"]
|
||||
attrs_per_entity_type_ca_id[ca_ent_type][key] = cust_attr["id"]
|
||||
else:
|
||||
elif ca_ent_type == "task":
|
||||
obj_id = cust_attr["object_type_id"]
|
||||
attrs_per_entity_type[obj_id][key] = cust_attr["default"]
|
||||
attrs_per_entity_type_ca_id[obj_id][key] = cust_attr["id"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue