fix import files with underscore (#2326)

This commit is contained in:
shun-iwasawa 2018-10-18 13:46:15 +09:00 committed by masafumi-inoue
parent f8c030bad0
commit 816b50f22d

View file

@ -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);