diff --git a/toonz/sources/toonzlib/toonzscene.cpp b/toonz/sources/toonzlib/toonzscene.cpp index 8fdeff3..5dab4bb 100644 --- a/toonz/sources/toonzlib/toonzscene.cpp +++ b/toonz/sources/toonzlib/toonzscene.cpp @@ -172,7 +172,7 @@ void deleteUntitledScene(const TFilePath &fp) { static void saveBackup(TFilePath path) { try { - TFilePath backup = path.withName(path.getName() + "_backup"); + TFilePath backup = path.withType(path.getType() + ".bak"); if (TSystem::doesExistFileOrLevel(backup)) TSystem::removeFileOrLevel_throw(backup); TSystem::copyFileOrLevel_throw(backup, path); diff --git a/toonz/sources/toonzlib/txshsimplelevel.cpp b/toonz/sources/toonzlib/txshsimplelevel.cpp index 8b5bac1..272574e 100644 --- a/toonz/sources/toonzlib/txshsimplelevel.cpp +++ b/toonz/sources/toonzlib/txshsimplelevel.cpp @@ -1375,7 +1375,7 @@ void TXshSimpleLevel::save() { static void saveBackup(TFilePath path) { try { - TFilePath backup = path.withName(path.getName() + "_backup"); + TFilePath backup = path.withType(path.getType() + ".bak"); if (TSystem::doesExistFileOrLevel(backup)) TSystem::removeFileOrLevel_throw(backup); TSystem::copyFileOrLevel_throw(backup, path);