From 816b50f22d7daa478d9ef3f964cd0ad893795840 Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Thu, 18 Oct 2018 13:46:15 +0900 Subject: [PATCH] fix import files with underscore (#2326) --- toonz/sources/toonzlib/toonzscene.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toonz/sources/toonzlib/toonzscene.cpp b/toonz/sources/toonzlib/toonzscene.cpp index f3322b86..b0e43ac8 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);