mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
thumbail is also added to asset entity
This commit is contained in:
parent
95c1ec1993
commit
b47365c49f
1 changed files with 9 additions and 0 deletions
|
|
@ -137,3 +137,12 @@ class IntegrateThumbnails(pyblish.api.InstancePlugin):
|
|||
self.log.debug("Setting thumbnail for version \"{}\" <{}>".format(
|
||||
version["name"], str(version["_id"])
|
||||
))
|
||||
|
||||
asset_entity = instance.data["assetEntity"]
|
||||
io.update_many(
|
||||
{"_id": asset_entity["_id"]},
|
||||
{"$set": {"data.thumbnail_id": thumbnail_id}}
|
||||
)
|
||||
self.log.debug("Setting thumbnail for asset \"{}\" <{}>".format(
|
||||
asset_entity["name"], str(version["_id"])
|
||||
))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue