OpenToonz - An open-source full-featured 2D animation creation software
C
fix psd removed on save (#2559)
shun-iwasawabcc4cf8c2922
diff --git a/toonz/sources/toonz/levelcommand.cpp b/toonz/sources/toonz/levelcommand.cppindex 4ae2d12a5..ab63c22d9 100644--- a/toonz/sources/toonz/levelcommand.cpp+++ b/toonz/sources/toonz/levelcommand.cpp@@ -334,7 +334,7 @@ void revertTo(bool isCleanedUp) {delete undo;else {TUndoManager::manager()->add(undo);- sl->setDirtyFlag(true);+ if (isCleanedUp) sl->setDirtyFlag(true);}app->getCurrentLevel()->notifyLevelChange();}@@ -390,7 +390,7 @@ void revertTo(bool isCleanedUp) {delete undo;else {TUndoManager::manager()->add(undo);- sl->setDirtyFlag(true);+ if (isCleanedUp) sl->setDirtyFlag(true);}}TUndoManager::manager()->endBlock();diff --git a/toonz/sources/toonzlib/txshsimplelevel.cpp b/toonz/sources/toonzlib/txshsimplelevel.cppindex 21fdbae3c..ad03350d0 100644--- a/toonz/sources/toonzlib/txshsimplelevel.cpp+++ b/toonz/sources/toonzlib/txshsimplelevel.cpp@@ -119,6 +119,7 @@ bool isAreadOnlyLevel(const TFilePath &path) {if (path.getDots() == "." ||(path.getDots() == ".." &&(path.getType() == "tlv" || path.getType() == "tpl"))) {+ if (path.getType() == "psd") return true;if (!TSystem::doesExistFileOrLevel(path)) return false;TFileStatus fs(path);return !fs.isWritable();