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:
Petr Kalis 2025-08-18 16:54:24 +02:00
commit 8289fb014d

View file

@ -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