OpenToonz - An open-source full-featured 2D animation creation software
C
fix(toonzlib): fall back to a default palette for new vector/raster levels
chantology372e59ccfc85
diff --git a/toonz/sources/toonzlib/txshsimplelevel.cpp b/toonz/sources/toonzlib/txshsimplelevel.cppindex bbc89c772..9f544353d 100644--- a/toonz/sources/toonzlib/txshsimplelevel.cpp+++ b/toonz/sources/toonzlib/txshsimplelevel.cpp@@ -1925,6 +1925,10 @@ void TXshSimpleLevel::initializePalette() {break;}+ // no palette file found: use a default palette instead of none+ if (!palette && (type == TZP_XSHLEVEL || type == PLI_XSHLEVEL))+ palette = new TPalette();+if (palette) {if (type != OVL_XSHLEVEL) {palette->setPaletteName(getName());