mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
condition for case where audio is already collected
This commit is contained in:
parent
266975d694
commit
98ac7f538e
1 changed files with 5 additions and 4 deletions
|
|
@ -68,9 +68,10 @@ class CollectAudio(pyblish.api.InstancePlugin):
|
|||
|
||||
# Add audio to instance if representation was found
|
||||
if repre_doc:
|
||||
instance.data["audio"] = [{
|
||||
"offset": 0,
|
||||
"filename": get_representation_path(repre_doc)
|
||||
}]
|
||||
if not instance.data.get("audio"):
|
||||
instance.data["audio"] = [{
|
||||
"offset": 0,
|
||||
"filename": get_representation_path(repre_doc)
|
||||
}]
|
||||
|
||||
self.log.debug("instance.data: {}".format(pformat(instance.data)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue