mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +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}
|
{"active": False}
|
||||||
)
|
)
|
||||||
|
|
||||||
def _copy_version_thumbnail(self):
|
def _copy_version_thumbnail(self) -> Optional[str]:
|
||||||
thumbnail_id = self._src_version_entity["thumbnailId"]
|
thumbnail_id = self._src_version_entity["thumbnailId"]
|
||||||
if not thumbnail_id:
|
if not thumbnail_id:
|
||||||
return
|
return None
|
||||||
path = get_thumbnail_path(
|
path = get_thumbnail_path(
|
||||||
self._item.src_project_name,
|
self._item.src_project_name,
|
||||||
"version",
|
"version",
|
||||||
|
|
@ -1164,7 +1164,7 @@ class ProjectPushItemProcess:
|
||||||
thumbnail_id
|
thumbnail_id
|
||||||
)
|
)
|
||||||
if not path:
|
if not path:
|
||||||
return
|
return None
|
||||||
return ayon_api.create_thumbnail(
|
return ayon_api.create_thumbnail(
|
||||||
self._item.dst_project_name,
|
self._item.dst_project_name,
|
||||||
path
|
path
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue