mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
OP-3589 - renamed method
This commit is contained in:
parent
9f2bbbbe38
commit
eed26c09fc
1 changed files with 2 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
|
||||||
self.log.info("Skipping - no review set on instance.")
|
self.log.info("Skipping - no review set on instance.")
|
||||||
return
|
return
|
||||||
|
|
||||||
if self._has_thumbnail_already(instance):
|
if self._already_has_thumbnail(instance):
|
||||||
self.log.info("Thumbnail representation already present.")
|
self.log.info("Thumbnail representation already present.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
@ -106,7 +106,7 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
|
||||||
# There is no need to create more then one thumbnail
|
# There is no need to create more then one thumbnail
|
||||||
break
|
break
|
||||||
|
|
||||||
def _has_thumbnail_already(self, instance):
|
def _already_has_thumbnail(self, instance):
|
||||||
for repre in instance.data.get("representations", []):
|
for repre in instance.data.get("representations", []):
|
||||||
self.log.info("repre {}".format(repre))
|
self.log.info("repre {}".format(repre))
|
||||||
if repre["name"] == "thumbnail":
|
if repre["name"] == "thumbnail":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue