diff --git a/openpype/hosts/tvpaint/api/pipeline.py b/openpype/hosts/tvpaint/api/pipeline.py index c125da15331..deb32fcc684 100644 --- a/openpype/hosts/tvpaint/api/pipeline.py +++ b/openpype/hosts/tvpaint/api/pipeline.py @@ -160,7 +160,15 @@ def work_root(self, session): return session["AVALON_WORKDIR"] def get_current_workfile(self): - return execute_george("tv_GetProjectName") + # tvPaint return a '\' character when no scene is currently + # opened instead of a None value, which causes interferences + # in OpenPype's core code. + # So we check the returned value and send None if this + # character is retrieved. + current_workfile = execute_george("tv_GetProjectName") + if current_workfile == '\\': + current_workfile = None + return current_workfile def workfile_has_unsaved_changes(self): return None