mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
autofix wrong representations
This commit is contained in:
parent
b601da0dbb
commit
7cde83933a
1 changed files with 3 additions and 0 deletions
|
|
@ -667,6 +667,9 @@ def convert_v4_representation_to_v3(representation):
|
|||
_c_folder = context["folder"]
|
||||
context["asset"] = _c_folder["name"]
|
||||
|
||||
elif "asset" in context and "folder" not in context:
|
||||
context["folder"] = {"name": context["asset"]}
|
||||
|
||||
if "product" in context:
|
||||
_c_product = context.pop("product")
|
||||
context["family"] = _c_product["type"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue