use 'get_project_settings' in substance painter

This commit is contained in:
Jakub Trllo 2024-03-27 12:08:10 +01:00
parent 1e4dff2735
commit 0300c69806

View file

@ -12,17 +12,15 @@ import substance_painter.project
import pyblish.api
from ayon_core.host import HostBase, IWorkfileHost, ILoadHost, IPublishHost
from ayon_core.settings import (
get_current_project_settings,
get_project_settings,
)
from ayon_core.settings import get_project_settings
from ayon_core.pipeline.template_data import get_template_data_with_names
from ayon_core.pipeline import (
get_current_project_name,
register_creator_plugin_path,
register_loader_plugin_path,
AVALON_CONTAINER_ID,
Anatomy
Anatomy,
)
from ayon_core.lib import (
StringTemplate,
@ -76,7 +74,7 @@ class SubstanceHost(HostBase, IWorkfileHost, ILoadHost, IPublishHost):
log.info("Installing menu ... ")
self._install_menu()
project_settings = get_current_project_settings()
project_settings = get_project_settings(get_current_project_name())
self._install_shelves(project_settings)
self._has_been_setup = True