Skip to content

Commit

Permalink
fix unreal load plugins too
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Mar 26, 2024
1 parent 3526a1e commit df1d0d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def load(self, context, name, namespace, data):
root = unreal_pipeline.AYON_ASSET_DIR
folder_name = context["folder"]["name"]
folder_path = context["folder"]["path"]
product_type = context["representation"]["context"]["family"]
product_type = context["product"]["productType"]
suffix = "_CON"
if folder_name:
asset_name = "{}_{}".format(folder_name, name)
Expand Down
2 changes: 1 addition & 1 deletion client/ayon_core/hosts/unreal/plugins/load/load_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ def load(self, context, name, namespace, options):
"loader": str(self.__class__.__name__),
"representation": context["representation"]["id"],
"parent": context["representation"]["versionId"],
"family": context["representation"]["context"]["family"],
"family": context["product"]["productType"],
"loaded_assets": loaded_assets
}
imprint(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def load(self, context, name, namespace, options):

folder_name = context["folder"]["name"]
folder_path = context["folder"]["path"]
product_type = context["representation"]["context"]["family"]
product_type = context["product"]["productType"]
asset_name = f"{folder_name}_{name}" if folder_name else name
container_name = f"{folder_name}_{name}_CON"

Expand Down

0 comments on commit df1d0d4

Please sign in to comment.