Skip to content

Commit

Permalink
Set data directly when create entity
Browse files Browse the repository at this point in the history
  • Loading branch information
kalisp committed Nov 26, 2024
1 parent d89372e commit 281a192
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions services/shotgrid_common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,8 @@ def create_new_ayon_entity(
label=sg_ay_dict["label"],
entity_id=sg_ay_dict["data"][CUST_FIELD_CODE_ID],
parent_id=parent_entity.id,
attribs=sg_ay_dict["attribs"]
attribs=sg_ay_dict["attribs"],
data=sg_ay_dict["data"]
)
else:
ay_entity = entity_hub.add_new_folder(
Expand All @@ -1328,7 +1329,8 @@ def create_new_ayon_entity(
label=sg_ay_dict["label"],
entity_id=sg_ay_dict["data"][CUST_FIELD_CODE_ID],
parent_id=parent_entity.id,
attribs=sg_ay_dict["attribs"]
attribs=sg_ay_dict["attribs"],
data=sg_ay_dict["data"]
)

log.debug(f"Created new AYON entity: {ay_entity}")
Expand Down

0 comments on commit 281a192

Please sign in to comment.