mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Fix: Shot&Sequence name with prefix over appends
This commit is contained in:
parent
27a4c9cdb3
commit
443c5a3696
1 changed files with 2 additions and 2 deletions
|
|
@ -230,9 +230,9 @@ def update_op_assets(
|
||||||
if item_type in ["Shot", "Sequence"]:
|
if item_type in ["Shot", "Sequence"]:
|
||||||
# Name with parents hierarchy "({episode}_){sequence}_{shot}"
|
# Name with parents hierarchy "({episode}_){sequence}_{shot}"
|
||||||
# to avoid duplicate name issue
|
# to avoid duplicate name issue
|
||||||
item_name = "_".join(item_data["parents"] + [item_doc["name"]])
|
item_name = f"{item_data['parents'][-1]}_{item['name']}"
|
||||||
else:
|
else:
|
||||||
item_name = item_doc["name"]
|
item_name = item["name"]
|
||||||
|
|
||||||
# Set root folders parents
|
# Set root folders parents
|
||||||
item_data["parents"] = entity_parent_folders + item_data["parents"]
|
item_data["parents"] = entity_parent_folders + item_data["parents"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue