mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
strip dot of extension
This commit is contained in:
parent
15854f0706
commit
583dae949d
1 changed files with 3 additions and 2 deletions
|
|
@ -541,11 +541,12 @@ def save_next_version(
|
|||
workfile_extensions = host.get_workfile_extensions()
|
||||
if workfile_extensions:
|
||||
if current_path:
|
||||
ext = os.path.splitext(current_path)[1].lstrip(".")
|
||||
ext = os.path.splitext(current_path)[1]
|
||||
elif last_workfile is not None:
|
||||
ext = os.path.splitext(last_workfile.filepath)[1].lstrip(".")
|
||||
ext = os.path.splitext(last_workfile.filepath)[1]
|
||||
else:
|
||||
ext = next(iter(workfile_extensions), None)
|
||||
ext = ext.lstrip(".")
|
||||
|
||||
if ext:
|
||||
template_data["ext"] = ext
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue