mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix imports and usage of get_anatomy_settings
This commit is contained in:
parent
d6a75d8cbe
commit
372569c5b1
3 changed files with 6 additions and 7 deletions
|
|
@ -2,7 +2,7 @@ from .settings import (
|
|||
get_system_settings,
|
||||
get_project_settings,
|
||||
get_current_project_settings,
|
||||
get_anatomy_data,
|
||||
get_anatomy_settings,
|
||||
get_environments
|
||||
)
|
||||
from pypeapp import (
|
||||
|
|
@ -55,7 +55,7 @@ __all__ = [
|
|||
"get_system_settings",
|
||||
"get_project_settings",
|
||||
"get_current_project_settings",
|
||||
"get_anatomy_data",
|
||||
"get_anatomy_settings",
|
||||
"get_environments",
|
||||
|
||||
"Logger",
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import copy
|
|||
from avalon.api import AvalonMongoDB
|
||||
|
||||
import avalon
|
||||
from pype.api import Logger, Anatomy, get_anatomy_data
|
||||
from pype.api import Logger, Anatomy, get_anatomy_settings
|
||||
|
||||
from bson.objectid import ObjectId
|
||||
from bson.errors import InvalidId
|
||||
|
|
@ -1096,7 +1096,7 @@ class SyncEntitiesFactory:
|
|||
|
||||
def prepare_ftrack_ent_data(self):
|
||||
project_name = self.entities_dict[self.ft_project_id]["name"]
|
||||
project_anatomy_data = get_anatomy_data(project_name)
|
||||
project_anatomy_data = get_anatomy_settings(project_name)
|
||||
|
||||
task_type_mapping = (
|
||||
project_anatomy_data["attributes"]["task_short_names"]
|
||||
|
|
|
|||
|
|
@ -440,7 +440,7 @@ def get_default_project_settings(clear_metadata=True):
|
|||
return result
|
||||
|
||||
|
||||
def get_default_anatomy_settings():
|
||||
def get_default_anatomy_settings(clear_metadata=True):
|
||||
"""Project anatomy data with applied studio's default project overrides."""
|
||||
default_values = get_default_settings()[PROJECT_ANATOMY_KEY]
|
||||
studio_values = get_studio_project_anatomy_overrides()
|
||||
|
|
@ -450,8 +450,7 @@ def get_default_anatomy_settings():
|
|||
return result
|
||||
|
||||
|
||||
|
||||
def get_anatomy_settings(project_name):
|
||||
def get_anatomy_settings(project_name, clear_metadata=True):
|
||||
"""Project anatomy data with applied studio and project overrides."""
|
||||
if not project_name:
|
||||
raise ValueError(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue