OpenToonz - An open-source full-featured 2D animation creation software
C
Determine number length from scene name
Konstantin Dmitriev0fd9c0ba8dff
diff --git a/toonz/sources/toonz/scenebrowser.cpp b/toonz/sources/toonz/scenebrowser.cppindex 62425b9a1..699fd5c58 100644--- a/toonz/sources/toonz/scenebrowser.cpp+++ b/toonz/sources/toonz/scenebrowser.cpp@@ -2093,7 +2093,7 @@ void SceneBrowser::newScene() {}int i = number.toInt();do {- QString number = QStringLiteral("%1").arg(++i, 3, 10, QLatin1Char('0'));+ QString number = QStringLiteral("%1").arg(++i, number.length(), 10, QLatin1Char('0'));scenePath = parentFolder + (prefix.toStdWString()+number.toStdWString()+L".tnz");} while (TFileStatus(scenePath).doesExist());