mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
OP-4512 - create Anatomy object only for default local sites
Eg. studio and local id of machine. It doesn't make much sense for Anatomy to handle other SiteSync sites.
This commit is contained in:
parent
0c481f8351
commit
753c876d9f
1 changed files with 5 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ from openpype.lib.path_templates import (
|
|||
FormatObject,
|
||||
)
|
||||
from openpype.lib.log import Logger
|
||||
from openpype.lib import get_local_site_id
|
||||
|
||||
log = Logger.get_logger(__name__)
|
||||
|
||||
|
|
@ -60,6 +61,10 @@ class BaseAnatomy(object):
|
|||
project_name = project_doc["name"]
|
||||
self.project_name = project_name
|
||||
|
||||
if site_name not in ["studio", get_local_site_id()]:
|
||||
raise RuntimeError("Anatomy could be created only for default "
|
||||
"local sites")
|
||||
|
||||
self._site_name = site_name
|
||||
|
||||
self._data = self._prepare_anatomy_data(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue