integrate thumbnails use new structure of published representations

This commit is contained in:
iLLiCiTiT 2020-02-20 17:07:18 +01:00
parent edf48c0149
commit 4a3bf303d4

View file

@ -52,9 +52,12 @@ class IntegrateThumbnails(pyblish.api.InstancePlugin):
return
thumb_repre = None
for repre in published_repres:
thumb_repre_anatomy_data = None
for repre_info in published_repres.values():
repre = repre_info["representation"]
if repre["name"].lower() == "thumbnail":
thumb_repre = repre
thumb_repre_anatomy_data = repre_info["anatomy_data"]
break
if not thumb_repre: