mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
renamed 'get_representation' to 'get_representation_by_id'
This commit is contained in:
parent
ba6ef6d2ae
commit
cde47eefa8
4 changed files with 40 additions and 11 deletions
|
|
@ -11,7 +11,7 @@ from openpype.client import (
|
|||
get_subset_by_id,
|
||||
get_version_by_id,
|
||||
get_last_version_by_subset_id,
|
||||
get_representation,
|
||||
get_representation_by_id,
|
||||
)
|
||||
from openpype.pipeline import (
|
||||
legacy_io,
|
||||
|
|
@ -313,8 +313,8 @@ class InventoryModel(TreeModel):
|
|||
for repre_id, group_dict in sorted(grouped.items()):
|
||||
group_items = group_dict["items"]
|
||||
# Get parenthood per group
|
||||
representation = get_representation(
|
||||
project_name, representation_id=repre_id
|
||||
representation = get_representation_by_id(
|
||||
project_name, repre_id
|
||||
)
|
||||
if not representation:
|
||||
not_found["representation"].append(group_items)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ from openpype.client import (
|
|||
get_version_by_id,
|
||||
get_versions,
|
||||
get_hero_versions,
|
||||
get_representation,
|
||||
get_representation_by_id,
|
||||
get_representations,
|
||||
)
|
||||
from openpype import style
|
||||
|
|
@ -657,9 +657,9 @@ class SceneInventoryView(QtWidgets.QTreeView):
|
|||
|
||||
project_name = legacy_io.active_project()
|
||||
# Get available versions for active representation
|
||||
repre_doc = get_representation(
|
||||
repre_doc = get_representation_by_id(
|
||||
project_name,
|
||||
representation_id=active["representation"],
|
||||
active["representation"],
|
||||
fields=["parent"]
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue