fix import files with underscore (#2326)
This commit is contained in:
parent
f8c030bad0
commit
816b50f22d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue