Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return None from get_current_workfile when no workfile is currently opened #11

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion client/ayon_tvpaint/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ def work_root(self, session):
return session["AYON_WORKDIR"]

def get_current_workfile(self):
return execute_george("tv_GetProjectName")
# TVPaint returns a '\' character when no scene is currently opened
current_workfile = execute_george("tv_GetProjectName")
if current_workfile == '\\':
return None
return current_workfile

def workfile_has_unsaved_changes(self):
return None
Expand Down