Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

General: Fix deprecated warning in legacy creator #3978

Merged
merged 1 commit into from
Oct 14, 2022
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
10 changes: 8 additions & 2 deletions openpype/pipeline/create/legacy_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
import logging
import collections

from openpype.lib import get_subset_name
from openpype.client import get_asset_by_id

from .subset_name import get_subset_name


class LegacyCreator(object):
Expand Down Expand Up @@ -147,11 +149,15 @@ def get_subset_name(
variant, task_name, asset_id, project_name, host_name
)

asset_doc = get_asset_by_id(
project_name, asset_id, fields=["data.tasks"]
)

return get_subset_name(
cls.family,
variant,
task_name,
asset_id,
asset_doc,
project_name,
host_name,
dynamic_data=dynamic_data
Expand Down