mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
add condition to check if there is a current file
This commit is contained in:
parent
ddf75b5e89
commit
5e957c50c8
1 changed files with 4 additions and 0 deletions
|
|
@ -3392,8 +3392,12 @@ def set_colorspace():
|
|||
|
||||
|
||||
def version_up_workfile():
|
||||
"""Function to increment and save workfile
|
||||
"""
|
||||
host = registered_host()
|
||||
current_file = host.get_current_workfile()
|
||||
if not current_file:
|
||||
return None
|
||||
filepath = version_up(current_file)
|
||||
host.save_workfile(filepath)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue