mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fix wrong name for sequence
This commit is contained in:
parent
9f41a512cb
commit
2bf3cf1b30
1 changed files with 3 additions and 4 deletions
|
|
@ -221,13 +221,12 @@ def update_op_assets(
|
|||
parent_entity = parent_doc["data"]["zou"]
|
||||
parent_zou_id = parent_entity["parent_id"]
|
||||
|
||||
# Item name
|
||||
if item_type == "Asset":
|
||||
item_name = item_doc["name"]
|
||||
elif item_type == "Shot":
|
||||
if item_type in ["Shot", "Sequence"]:
|
||||
# Name with parents hierarchy "({episode}_){sequence}_{shot}"
|
||||
# to avoid duplicate name issue
|
||||
item_name = "_".join(item_data["parents"] + [item_doc["name"]])
|
||||
else:
|
||||
item_name = item_doc["name"]
|
||||
|
||||
# Set root folders parents
|
||||
item_data["parents"] = entity_parent_folders + item_data["parents"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue