Merge pull request #2115 from pypeclub/bugfix/hiero-effect-wrong-resourses-path

This commit is contained in:
Jakub Ježek 2021-10-11 15:09:37 +02:00 committed by GitHub
commit 5d815e955f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,6 +68,12 @@ class CollectResourcesPath(pyblish.api.InstancePlugin):
"representation": "TEMP"
})
# For the first time publish
if instance.data.get("hierarchy"):
template_data.update({
"hierarchy": instance.data["hierarchy"]
})
anatomy_filled = anatomy.format(template_data)
if "folder" in anatomy.templates["publish"]: