OpenToonz - An open-source full-featured 2D animation creation software
C
Feature: Report missing/unknown XML tags during scene loading
Abel You34203617f4b7
diff --git a/toonz/sources/toonz/iocommand.cpp b/toonz/sources/toonz/iocommand.cppindex 312e725c1..d9973437a 100644--- a/toonz/sources/toonz/iocommand.cpp+++ b/toonz/sources/toonz/iocommand.cpp@@ -24,6 +24,7 @@#include "expressionreferencemanager.h"#include "levelcommand.h"#include "columncommand.h"+#include "tstreamexception.h"// TnzTools includes#include "tools/toolhandle.h"@@ -1975,6 +1976,17 @@ bool IoCmd::loadScene(const TFilePath &path, bool updateRecentFile,scene->setProject(currentProject);}VersionControlManager::instance()->setFrameRange(scene->getLevelSet());+ } catch (TException &e) {+ printf("%s:%s TException ...:\n", __FILE__, __FUNCTION__);++ QString detailMsg = QString::fromStdWString(e.getMessage());++ QString msg =+ QObject::tr("There were problems loading the scene %1.\nDetails:\n\n%2")+ .arg(QString::fromStdWString(scenePath.getWideString()))+ .arg(detailMsg);++ DVGui::warning(msg);} catch (...) {printf("%s:%s Exception ...:\n", __FILE__, __FUNCTION__);QString msg;@@ -2760,7 +2772,7 @@ bool IoCmd::importLipSync(TFilePath levelPath, QList<TFrameId> frameList,.arg(toQString(levelPath)));return false;}- return true;+ return true;}// Use double value DPI as policy