Merge pull request #2904 from pypeclub/bugfix/fix_roots_for_different_project

General: Fix use of Anatomy roots
This commit is contained in:
Jakub Trllo 2022-03-17 20:25:45 +01:00 committed by GitHub
commit 3a35f1a263
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -502,7 +502,7 @@ def get_representation_path_from_context(context):
session_project = Session.get("AVALON_PROJECT")
if project_doc and project_doc["name"] != session_project:
anatomy = Anatomy(project_doc["name"])
root = anatomy.roots_obj
root = anatomy.roots
return get_representation_path(representation, root)