OpenToonz - An open-source full-featured 2D animation creation software
C
Fix(Alias Decode): update standalone flag when saving scene
Abel You64af66a0a176
diff --git a/toonz/sources/toonzlib/toonzscene.cpp b/toonz/sources/toonzlib/toonzscene.cppindex 77aed63a9..cef8ee317 100644--- a/toonz/sources/toonzlib/toonzscene.cpp+++ b/toonz/sources/toonzlib/toonzscene.cpp@@ -385,9 +385,9 @@ int ToonzScene::loadFrameCount(const TFilePath &fp) {void ToonzScene::loadNoResources(const TFilePath &fp) {clear();- TProjectManager *pm = TProjectManager::instance();+ TProjectManager *pm = TProjectManager::instance();bool sceneStandAlone = false;- auto sceneProject = pm->loadSceneProject(fp, &sceneStandAlone);+ auto sceneProject = pm->loadSceneProject(fp, &sceneStandAlone);if (!sceneProject) return;if (sceneStandAlone) m_standAlone = true;@@ -586,6 +586,9 @@ void ToonzScene::save(const TFilePath &fp, TXsheet *subxsh) {TFilePath oldScenePath = getScenePath();TFilePath newScenePath = fp;+ if (newScenePath != oldScenePath)+ TProjectManager::instance()->loadSceneProject(fp, &m_standAlone);+CameraRedirection redir(this, subxsh);bool wasUntitled = isUntitled();