validate custom attributes from settings and creator tweak

This commit is contained in:
Milan Kolar 2020-12-04 18:09:20 +01:00
parent 4a300e0b08
commit 34c598835f
2 changed files with 8 additions and 4 deletions

View file

@ -61,8 +61,12 @@ class ValidateFtrackAttributes(pyblish.api.InstancePlugin):
"Missing FTrack Task entity in context")
host = pyblish.api.current_host()
to_check = context.data["presets"].get(
host, {}).get("ftrack_custom_attributes")
to_check = (
context.data["project_settings"]
["ftrack"]
.get(host, {})
.get("ftrack_custom_attributes")
)
if not to_check:
self.log.warning("ftrack_attributes preset not found")
return