Skip to content

Commit

Permalink
download casting load modelMain in hero version (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaamaurice authored and Tilix4 committed Mar 14, 2024
1 parent 9e2b97c commit bab9d52
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions openpype/hosts/blender/scripts/build_workfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ def download_kitsu_casting(
project_name: str,
shot_name: str,
asset_types: List[str] = None,
hero: bool = True,
) -> List[dict]:
"""Download kitsu casting
Expand All @@ -234,6 +235,8 @@ def download_kitsu_casting(
shot_name (str): Current shot name from OpenPype Session.
asset_types (List[str]): Asset types to include.
All supported asset types if none provided. Defaults to None.
hero (bool): If True assets are loaded in hero version.
Defaults to True.
Returns:
list: Representations.
Expand Down Expand Up @@ -275,14 +278,14 @@ def download_kitsu_casting(

# Download subset
representation = download_subset(
project_name, actor["asset_name"], subset_name, hero=True
project_name, actor["asset_name"], subset_name, hero=hero
)
if not representation and actor["asset_type_name"] in (
"Bidulo",
"Props",
):
representation = download_subset(
project_name, actor["asset_name"], "modelMain"
project_name, actor["asset_name"], "modelMain", hero=hero
)
if representation:
representations.append(representation)
Expand Down

0 comments on commit bab9d52

Please sign in to comment.