use project name from context for settings collection

This commit is contained in:
Jakub Trllo 2024-04-03 12:40:27 +02:00
parent 9ba450fe8b
commit 9e3bba4fea

View file

@ -1,5 +1,5 @@
from pyblish import api
from ayon_core.settings import get_current_project_settings
from ayon_core.settings import get_project_settings
class CollectSettings(api.ContextPlugin):
@ -9,4 +9,7 @@ class CollectSettings(api.ContextPlugin):
label = "Collect Settings"
def process(self, context):
context.data["project_settings"] = get_current_project_settings()
project_name = context.data["projectName"]
project_settings = get_project_settings(project_name)
context.data["project_settings"] = project_settings
context.data["projectSettings"] = project_settings