OpenToonz - An open-source full-featured 2D animation creation software
C
fix convert image bug
shun_iwasawafe7dd3b14f89
diff --git a/toonz/sources/common/tstream/tstream.cpp b/toonz/sources/common/tstream/tstream.cppindex d677eaee5..ac70b7f49 100644--- a/toonz/sources/common/tstream/tstream.cpp+++ b/toonz/sources/common/tstream/tstream.cpp@@ -260,7 +260,7 @@ TOStream::TOStream(const TFilePath &fp, bool compressed)TOStream::TOStream(std::shared_ptr<Imp> imp): m_imp(std::move(imp)){- assert(!imp->m_tagStack.empty());+ assert(!m_imp->m_tagStack.empty());ostream &os = *m_imp->m_os;if (m_imp->m_justStarted == false)cr();diff --git a/toonz/sources/toonzlib/convert2tlv.cpp b/toonz/sources/toonzlib/convert2tlv.cppindex 9755dcc76..25b9758ed 100644--- a/toonz/sources/toonzlib/convert2tlv.cpp+++ b/toonz/sources/toonzlib/convert2tlv.cpp@@ -344,8 +344,8 @@ void Convert2Tlv::buildInksForNAAImage(TRasterCM32P &rout, const TRaster32P &rinfor (j = 0; j < rin->getLx(); j++, pixin++, pixout++) {TPixel colorIn;- /*-白ピクセルを透明として扱う-*/- if (*pixin == TPixel(255, 255, 255)) {+ /*- treat white/transparent pixels as transparent -*/+ if (*pixin == TPixel(255, 255, 255) || *pixin == TPixel::Transparent) {*pixout = TPixelCM32(0, 0, 255);continue;}