mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
fix add missing project name in args
This commit is contained in:
parent
3612ceb937
commit
d9d8f7c315
1 changed files with 5 additions and 3 deletions
|
|
@ -208,10 +208,12 @@ def get_representation_context(representation):
|
||||||
|
|
||||||
assert representation is not None, "This is a bug"
|
assert representation is not None, "This is a bug"
|
||||||
|
|
||||||
if not isinstance(representation, dict):
|
|
||||||
representation = get_representation_by_id(representation)
|
|
||||||
|
|
||||||
project_name = legacy_io.active_project()
|
project_name = legacy_io.active_project()
|
||||||
|
if not isinstance(representation, dict):
|
||||||
|
representation = get_representation_by_id(
|
||||||
|
project_name, representation
|
||||||
|
)
|
||||||
|
|
||||||
version, subset, asset, project = get_representation_parents(
|
version, subset, asset, project = get_representation_parents(
|
||||||
project_name, representation
|
project_name, representation
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue