Skip to content

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

C

Mark PSD and ffmpeg loaded files as readonly in Level Strip

manongjohnfef8cbcc99ee
diff --git a/toonz/sources/toonzlib/txshsimplelevel.cpp b/toonz/sources/toonzlib/txshsimplelevel.cpp
index c50d43c08..96596f927 100644
--- a/toonz/sources/toonzlib/txshsimplelevel.cpp
+++ b/toonz/sources/toonzlib/txshsimplelevel.cpp
@@ -2318,7 +2318,11 @@ bool TXshSimpleLevel::isFrameReadOnly(TFrameId fid) {
// the OS level
if (getType() == OVL_XSHLEVEL || getType() == TZI_XSHLEVEL ||
getType() == MESH_XSHLEVEL) {
- TFilePath fullPath = getScene()->decodeFilePath(m_path);
+ TFilePath fullPath = getScene()->decodeFilePath(m_path);
+ std::string fileType = fullPath.getType();
+ if (fileType == "psd" || fileType == "gif" || fileType == "mp4" ||
+ fileType == "webm")
+ return true;
TFilePath path =
fullPath.getDots() == ".." ? fullPath.withFrame(fid) : fullPath;
if (!TSystem::doesExistFileOrLevel(path)) return false;