mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge branch 'feature/PYPE-272' into develop
This commit is contained in:
commit
46afda4dfa
1 changed files with 6 additions and 5 deletions
|
|
@ -31,10 +31,11 @@ class IncrementCurrentFileDeadline(pyblish.api.ContextPlugin):
|
||||||
current_filepath = context.data["currentFile"]
|
current_filepath = context.data["currentFile"]
|
||||||
new_filepath = version_up(current_filepath)
|
new_filepath = version_up(current_filepath)
|
||||||
|
|
||||||
# Ensure the suffix is .ma because we're saving to `mayaAscii` type
|
# # Ensure the suffix is .ma because we're saving to `mayaAscii` type
|
||||||
if not new_filepath.endswith(".ma"):
|
if new_filepath.endswith(".ma"):
|
||||||
self.log.warning("Refactoring scene to .ma extension")
|
fileType = "mayaAscii"
|
||||||
new_filepath = os.path.splitext(new_filepath)[0] + ".ma"
|
elif new_filepath.endswith(".mb"):
|
||||||
|
fileType = "mayaBinary"
|
||||||
|
|
||||||
cmds.file(rename=new_filepath)
|
cmds.file(rename=new_filepath)
|
||||||
cmds.file(save=True, force=True, type="mayaAscii")
|
cmds.file(save=True, force=True, type=fileType)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue