OpenToonz - An open-source full-featured 2D animation creation software
C
fix import files with underscore (#2326)
shun-iwasawa816b50f22d7d
diff --git a/toonz/sources/toonzlib/toonzscene.cpp b/toonz/sources/toonzlib/toonzscene.cppindex f3322b860..b0e43ac81 100644--- a/toonz/sources/toonzlib/toonzscene.cpp+++ b/toonz/sources/toonzlib/toonzscene.cpp@@ -1096,11 +1096,11 @@ TFilePath ToonzScene::getImportedLevelPath(const TFilePath path) const {if (ltype.m_ltype == UNKNOWN_XSHLEVEL) return path;const std::wstring &levelName = path.getWideName();- const std::string &ext = path.getType(), &dots = path.getDots();+ const std::string &dots = path.getDots();TFilePath importedLevelPath =getDefaultLevelPath(ltype.m_ltype, levelName).getParentDir() +- (levelName + ::to_wstring(dots + ext));+ path.getLevelNameW();if (dots == "..")importedLevelPath = importedLevelPath.withFrame(TFrameId::EMPTY_FRAME);