mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use 'get_project_settings' in substance painter
This commit is contained in:
parent
1e4dff2735
commit
0300c69806
1 changed files with 4 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue