Skip to content

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

C

Move level_to_foldername.clear() to proper position

Abel Youc9e8a7da1c78
diff --git a/toonz/sources/toonz/exportalllevelspopup.cpp b/toonz/sources/toonz/exportalllevelspopup.cpp
index b505d92d2..c0321f8c9 100644
--- a/toonz/sources/toonz/exportalllevelspopup.cpp
+++ b/toonz/sources/toonz/exportalllevelspopup.cpp
@@ -191,9 +191,6 @@ void ExportAllLevelsPopup::showEvent(QShowEvent *se) {
m_exportOptions->m_dpiLabel->show();
}
- // reset map
- level_to_foldername.clear();
-
onExportAll(m_isExportAll);
updateOnSelection();
@@ -332,6 +329,8 @@ void ExportAllLevelsPopup::collectSelectedSimpleLevels() {
std::string colname;
std::wstring levelname;
+ // get output level names
+ level_to_foldername.clear();
for (int index = 0; index < col_count; ++index) {
TXshColumn *col = xsh->getColumn(index);//start from a not camera column
assert(col);