OpenToonz - An open-source full-featured 2D animation creation software
C
Fix to not export tlv when output levels include ToonzRaster level
Abel Youd4ae153de915
diff --git a/toonz/sources/toonz/exportalllevelspopup.cpp b/toonz/sources/toonz/exportalllevelspopup.cppindex c59e6e140..fd1a96838 100644--- a/toonz/sources/toonz/exportalllevelspopup.cpp+++ b/toonz/sources/toonz/exportalllevelspopup.cpp@@ -364,23 +364,21 @@ void ExportAllLevelsPopup::updateOnSelection() {TXshSimpleLevel *sl = outputLevels.back()->getSimpleLevel();assert(sl);- // Enable tlv output in case all inputs are pli or tlv+ // Enable tlv output in case all inputs are pliint tlvIdx = m_format->findText("tlv");//export all modeif (isexport_all) {- bool allPliTlvs = true;+ bool allPli = true;for (auto sl : outputLevels) {- allPliTlvs = (sl && (sl->getType() == PLI_XSHLEVEL ||- sl->getType() == TZP_XSHLEVEL)) &&- allPliTlvs;+ allPli = (sl && (sl->getType() == PLI_XSHLEVEL)) &&+ allPli;}- if (allPliTlvs) {+ if (allPli) {if (tlvIdx < 0) m_format->addItem("tlv");} else {if (tlvIdx > 0) m_format->removeItem(tlvIdx);}-- }+ }//export one by one modeelse {if (sl->getType() == PLI_XSHLEVEL || sl->getType() == TZP_XSHLEVEL) {