Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: download kitsu casting load modelMain in hero version #56

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading