diff --git a/toonz/sources/toonz/levelcommand.cpp b/toonz/sources/toonz/levelcommand.cpp index 4ae2d12..ab63c22 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.cpp index 21fdbae..ad03350 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();