mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
presets are loaded only once instead of loading for each plugin
This commit is contained in:
parent
30f4f13809
commit
1968dc465e
1 changed files with 5 additions and 1 deletions
|
|
@ -467,10 +467,14 @@ def filter_pyblish_plugins(plugins):
|
||||||
|
|
||||||
host = api.current_host()
|
host = api.current_host()
|
||||||
|
|
||||||
|
presets = config.get_presets().get('plugins', {}).get(host, {}).get(
|
||||||
|
"publish", {}
|
||||||
|
)
|
||||||
|
|
||||||
# iterate over plugins
|
# iterate over plugins
|
||||||
for plugin in plugins[:]:
|
for plugin in plugins[:]:
|
||||||
try:
|
try:
|
||||||
config_data = config.get_presets()['plugins'][host]["publish"][plugin.__name__] # noqa: E501
|
config_data = presets[plugin.__name__] # noqa: E501
|
||||||
except KeyError:
|
except KeyError:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue