mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 06:12:19 +01:00
OP-1937 - fix - failure when Site Sync is not enabled
This commit is contained in:
parent
8ba0e60671
commit
828c601d14
1 changed files with 2 additions and 0 deletions
|
|
@ -1030,6 +1030,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
local_site = 'studio' # default
|
||||
remote_site = None
|
||||
always_accesible = []
|
||||
sync_project_presets = None
|
||||
|
||||
rec = {
|
||||
"_id": io.ObjectId(),
|
||||
|
|
@ -1090,6 +1091,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
return rec
|
||||
|
||||
def _get_sites(self, sync_project_presets):
|
||||
"""Returns tuple (local_site, remote_site)"""
|
||||
local_site_id = openpype.api.get_local_site_id()
|
||||
local_site = sync_project_presets["config"]. \
|
||||
get("active_site", "studio").strip()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue