From df9a398cc67b8d4a75554c9566688b76f1ab64d1 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Thu, 24 Feb 2022 13:11:31 +0100 Subject: [PATCH] flame: existing tasks adding to object variable --- .../flame/startup/openpype_babypublisher/modules/ftrack_lib.py | 3 ++- .../flame/startup/openpype_babypublisher/modules/panel_app.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/openpype/hosts/flame/startup/openpype_babypublisher/modules/ftrack_lib.py b/openpype/hosts/flame/startup/openpype_babypublisher/modules/ftrack_lib.py index 7bf28ae5a7..0e84a5ef52 100644 --- a/openpype/hosts/flame/startup/openpype_babypublisher/modules/ftrack_lib.py +++ b/openpype/hosts/flame/startup/openpype_babypublisher/modules/ftrack_lib.py @@ -360,10 +360,11 @@ class FtrackComponentCreator: class FtrackEntityOperator: + existing_tasks = [] + def __init__(self, session, project_entity): self.session = session self.project_entity = project_entity - self.existing_tasks = [] def commit(self): try: diff --git a/openpype/hosts/flame/startup/openpype_babypublisher/modules/panel_app.py b/openpype/hosts/flame/startup/openpype_babypublisher/modules/panel_app.py index e087549dc4..1e8011efaa 100644 --- a/openpype/hosts/flame/startup/openpype_babypublisher/modules/panel_app.py +++ b/openpype/hosts/flame/startup/openpype_babypublisher/modules/panel_app.py @@ -33,6 +33,7 @@ class MainWindow(QtWidgets.QWidget): self.panel_class.clear_temp_data() self.panel_class.close() clear_inner_modules() + ftrack_lib.FtrackEntityOperator.existing_tasks = [] # now the panel can be closed event.accept()