mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix import of 'get_subset_name' in legacy creator
This commit is contained in:
parent
867a819536
commit
39747041e8
1 changed files with 8 additions and 2 deletions
|
|
@ -9,7 +9,9 @@ import os
|
|||
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):
|
||||
|
|
@ -147,11 +149,15 @@ class LegacyCreator(object):
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue