Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Make lonely Scene to decodeFilePath by sceneFolder but not by sandbox Folders

Abel You71b0df0db653
diff --git a/toonz/sources/toonzlib/toonzscene.cpp b/toonz/sources/toonzlib/toonzscene.cpp
index ea31c5008..871218802 100644
--- a/toonz/sources/toonzlib/toonzscene.cpp
+++ b/toonz/sources/toonzlib/toonzscene.cpp
@@ -1273,6 +1273,8 @@ TFilePath ToonzScene::decodeFilePath(const TFilePath &path) const {
if (project) {
h = ::to_string(head.substr(1));
TFilePath f = project->getFolder(h);
+ if (isLonelyScene())
+ return m_scenePath.getParentDir() + f + tail;
if (f != TFilePath()) s = f.getWideString();
}
}