Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Add "-" before number if initial scene name has no number

Konstantin Dmitrieve3baae3d787b
diff --git a/toonz/sources/toonz/scenebrowser.cpp b/toonz/sources/toonz/scenebrowser.cpp
index 1ed6b23a1..62425b9a1 100644
--- a/toonz/sources/toonz/scenebrowser.cpp
+++ b/toonz/sources/toonz/scenebrowser.cpp
@@ -2087,6 +2087,10 @@ void SceneBrowser::newScene() {
break;
}
}
+ if (number.length()==0) {
+ prefix+="-";
+ number="000";
+ }
int i = number.toInt();
do {
QString number = QStringLiteral("%1").arg(++i, 3, 10, QLatin1Char('0'));