From 75f5b4011de986d29fcbfff7f0e9477ad3f96d12 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 19 Aug 2021 15:50:30 +0200 Subject: [PATCH] added reset publish method --- openpype/tools/new_publisher/control.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openpype/tools/new_publisher/control.py b/openpype/tools/new_publisher/control.py index 6b29987854..d9dfb529b3 100644 --- a/openpype/tools/new_publisher/control.py +++ b/openpype/tools/new_publisher/control.py @@ -446,6 +446,10 @@ class PublisherController: if self._publish_is_running: self._stop_publish() + def reset_publish(self): + self.stop_publish() + self._reset_publish() + def _publish_next_process(self): # Validations of progress before using iterator # - same conditions may be inside iterator but they may be used