Skip to content

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

C

Performance Optimization

Abel Youc8739a8e6b50
diff --git a/toonz/sources/toonz/exportalllevelspopup.cpp b/toonz/sources/toonz/exportalllevelspopup.cpp
index c0321f8c9..150b1e154 100644
--- a/toonz/sources/toonz/exportalllevelspopup.cpp
+++ b/toonz/sources/toonz/exportalllevelspopup.cpp
@@ -200,8 +200,8 @@ void ExportAllLevelsPopup::showEvent(QShowEvent *se) {
void ExportAllLevelsPopup::hideEvent(QHideEvent* he) {
QDialog::hideEvent(he);
- outputLevels.clear();
- level_to_foldername.clear();
+ outputLevels = std::vector<TXshSimpleLevel *>();
+ level_to_foldername = std::map<std::wstring, std::wstring>();
m_swatch->image() = TImageP();
}
@@ -318,7 +318,6 @@ bool ExportAllLevelsPopup::execute() {
void ExportAllLevelsPopup::collectSelectedSimpleLevels() {
// get output Levels
- outputLevels.clear();
TXsheet *xsh = TApp::instance()->getCurrentXsheet()->getXsheet();
int col_count = xsh->getColumnCount();
int r0, r1; // cell start point and end point
@@ -330,7 +329,6 @@ void ExportAllLevelsPopup::collectSelectedSimpleLevels() {
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);