fixed data access

This commit is contained in:
Jakub Trllo 2022-07-19 10:18:41 +02:00
parent 6c457b2ed1
commit 30db574170

View file

@ -825,7 +825,7 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
""" """
return ( return (
instance.context["project_settings"] instance.context.data["project_settings"]
["global"] ["global"]
["publish"] ["publish"]
["IntegrateAssetNew"] ["IntegrateAssetNew"]
@ -845,7 +845,7 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
"families": anatomy_data["family"], "families": anatomy_data["family"],
"tasks": task.get("name"), "tasks": task.get("name"),
"task_types": task.get("type"), "task_types": task.get("type"),
"hosts": instance.context["hostName"], "hosts": instance.context.data["hostName"],
} }
def get_rootless_path(self, anatomy, path): def get_rootless_path(self, anatomy, path):