Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
set default extension to psd if file extension is not psd or psb
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementHector committed Jan 13, 2023
1 parent 8b1b09b commit d32800f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openpype/hosts/photoshop/api/workio.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def has_unsaved_changes():

def save_file(filepath):
_, ext = os.path.splitext(filepath)
if ext not in file_extensions():
ext = '.psd'
lib.stub().saveAs(filepath, ext[1:], True)


Expand Down

0 comments on commit d32800f

Please sign in to comment.