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

Commit

Permalink
Merge pull request #3978 from pypeclub/bugfix/get_subset_name_import_fix
Browse files Browse the repository at this point in the history
General: Fix deprecated warning in legacy creator
  • Loading branch information
iLLiCiTiT authored Oct 14, 2022
2 parents a983c7b + 3974704 commit 8bf63ef
Showing 1 changed file with 8 additions and 2 deletions.
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

0 comments on commit 8bf63ef

Please sign in to comment.