mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Update client/ayon_core/pipeline/context_tools.py
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
parent
7077b78c33
commit
c2504bdd04
1 changed files with 3 additions and 1 deletions
|
|
@ -587,7 +587,9 @@ def version_up_workfile():
|
|||
host = registered_host()
|
||||
current_file = host.get_current_workfile()
|
||||
if not current_file:
|
||||
log.debug("Current file not found.")
|
||||
log.debug(
|
||||
"Current file is unsaved and can't be versioned up. "
|
||||
"Please save your file first.")
|
||||
return None
|
||||
filepath = version_up(current_file)
|
||||
host.save_workfile(filepath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue