mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge remote-tracking branch 'origin/feature/OP-3939_Ftrack-option-for-thumbnail-deletion' into feature/OP-3939_Ftrack-option-for-thumbnail-deletion
This commit is contained in:
commit
2de6c8e400
1 changed files with 5 additions and 1 deletions
|
|
@ -26,8 +26,12 @@ class PreIntegrateThumbnails(pyblish.api.InstancePlugin):
|
|||
integrate_profiles = {}
|
||||
|
||||
def process(self, instance):
|
||||
repres = instance.data.get("representations")
|
||||
if not repres:
|
||||
return
|
||||
|
||||
thumbnail_repre = None
|
||||
for repre in instance.data["representations"]:
|
||||
for repre in repres:
|
||||
if repre["name"] == "thumbnail":
|
||||
thumbnail_repre = repre
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue