mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
fix unhandled empty source on instance
This commit is contained in:
parent
da17bf0f8d
commit
780ffefea9
1 changed files with 2 additions and 3 deletions
|
|
@ -940,9 +940,8 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
families += current_families
|
||||
|
||||
# create relative source path for DB
|
||||
if "source" in instance.data:
|
||||
source = instance.data["source"]
|
||||
else:
|
||||
source = instance.data.get("source")
|
||||
if not source:
|
||||
source = context.data["currentFile"]
|
||||
anatomy = instance.context.data["anatomy"]
|
||||
source = self.get_rootless_path(anatomy, source)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue