Skip to content

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

C

Prevent view shortcut from working on levels it shouldn't

manongjohnbced1b689b31
diff --git a/toonz/sources/toonz/levelsettingspopup.cpp b/toonz/sources/toonz/levelsettingspopup.cpp
index a7d3c52db..28b844e57 100644
--- a/toonz/sources/toonz/levelsettingspopup.cpp
+++ b/toonz/sources/toonz/levelsettingspopup.cpp
@@ -1191,6 +1191,8 @@ public:
if (!simpleLevels.size()) return;
for (i = 0; i < simpleLevels.size(); i++) {
+ if (!(simpleLevels[i]->getType() & LEVELCOLUMN_XSHLEVEL)) continue;
+
TFilePath path = simpleLevels[i]->getPath();
path = simpleLevels[i]->getScene()->decodeFilePath(path);
FlipBook *fb;