mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merged in hotfix/publish-plugin-improvements (pull request #377)
Publishing plugin improvements Approved-by: Milan Kolar <milan@orbi.tools>
This commit is contained in:
commit
7dcf0d5ffa
3 changed files with 10 additions and 2 deletions
|
|
@ -40,6 +40,15 @@ class CleanUp(pyblish.api.InstancePlugin):
|
|||
active = True
|
||||
|
||||
def process(self, instance):
|
||||
# Get the errored instances
|
||||
failed = []
|
||||
for result in instance.context.data["results"]:
|
||||
if (result["error"] is not None and result["instance"] is not None
|
||||
and result["instance"] not in failed):
|
||||
failed.append(result["instance"])
|
||||
assert instance not in failed, ("Result of '{}' instance "
|
||||
"were not success".format(instance.data["name"]))
|
||||
|
||||
if [ef for ef in self.exclude_families
|
||||
if instance.data["family"] in ef]:
|
||||
return
|
||||
|
|
|
|||
|
|
@ -62,7 +62,6 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
"render",
|
||||
"imagesequence",
|
||||
"review",
|
||||
"render",
|
||||
"rendersetup",
|
||||
"rig",
|
||||
"plate",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue