mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge branch 'enhancement/AY-7584_Library-Push-to-Current-project' of https://github.com/ynput/ayon-core into enhancement/AY-7584_Library-Push-to-Current-project
This commit is contained in:
commit
8289fb014d
1 changed files with 3 additions and 3 deletions
|
|
@ -1153,10 +1153,10 @@ class ProjectPushItemProcess:
|
|||
{"active": False}
|
||||
)
|
||||
|
||||
def _copy_version_thumbnail(self):
|
||||
def _copy_version_thumbnail(self) -> Optional[str]:
|
||||
thumbnail_id = self._src_version_entity["thumbnailId"]
|
||||
if not thumbnail_id:
|
||||
return
|
||||
return None
|
||||
path = get_thumbnail_path(
|
||||
self._item.src_project_name,
|
||||
"version",
|
||||
|
|
@ -1164,7 +1164,7 @@ class ProjectPushItemProcess:
|
|||
thumbnail_id
|
||||
)
|
||||
if not path:
|
||||
return
|
||||
return None
|
||||
return ayon_api.create_thumbnail(
|
||||
self._item.dst_project_name,
|
||||
path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue