mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
implemented _process_and_continue
This commit is contained in:
parent
99797a08b3
commit
d913cb3447
1 changed files with 16 additions and 1 deletions
|
|
@ -10,6 +10,8 @@ from openpype.api import (
|
|||
)
|
||||
|
||||
from openpype.pipeline import (
|
||||
PublishValidationError,
|
||||
KnownPublishError,
|
||||
OpenPypePyblishPluginMixin
|
||||
)
|
||||
|
||||
|
|
@ -419,7 +421,20 @@ class PublisherController:
|
|||
|
||||
def _process_and_continue(self, plugin, instance):
|
||||
# TODO execute plugin
|
||||
print(plugin, instance)
|
||||
result = pyblish.plugin.process(
|
||||
plugin, self._publish_context, instance
|
||||
)
|
||||
exception = result.get("error")
|
||||
if exception:
|
||||
if (
|
||||
isinstance(exception, PublishValidationError)
|
||||
and not self._publish_validated
|
||||
):
|
||||
self._publish_validation_errors.append(exception)
|
||||
|
||||
else:
|
||||
self._publish_error = exception
|
||||
|
||||
self._publish_next_process()
|
||||
|
||||
def get_asset_docs(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue