OpenToonz - An open-source full-featured 2D animation creation software
C
use preference for premultiply option
shun_iwasawa0becbefbda50
diff --git a/toonz/sources/toonz/iocommand.cpp b/toonz/sources/toonz/iocommand.cppindex 1ee0c40d1..c0ffba50f 100644--- a/toonz/sources/toonz/iocommand.cpp+++ b/toonz/sources/toonz/iocommand.cpp@@ -2131,9 +2131,6 @@ static int loadPSDResource(IoCmd::LoadResourceArguments &args,error(QString::fromStdWString(e.getMessage()));}if (xl) {- if (xl->getSimpleLevel()) // just in case- xl->getSimpleLevel()->getProperties()->setDoPremultiply(true);-// lo importo nell'xsheetif (popup->subxsheet() && childXsh) {childXsh->exposeLevel(0, subCol0, xl);diff --git a/toonz/sources/toonzlib/preferences.cpp b/toonz/sources/toonzlib/preferences.cppindex 7899033e5..8e692d1a7 100644--- a/toonz/sources/toonzlib/preferences.cpp+++ b/toonz/sources/toonzlib/preferences.cpp@@ -103,7 +103,7 @@ inline bool formatLess(const Preferences::LevelFormat &a,//=================================================================void getDefaultLevelFormats(LevelFormatVector &lfv) {- lfv.resize(1);+ lfv.resize(2);{LevelFormat &lf = lfv[0];@@ -111,6 +111,11 @@ void getDefaultLevelFormats(LevelFormatVector &lfv) {lf.m_pathFormat = QRegExp(".+[0-9]{4,4}\\.tga", Qt::CaseInsensitive);lf.m_options.m_whiteTransp = true;lf.m_options.m_antialias = 70;++ // for all PSD files, set the premultiply options to layers+ lfv[1].m_name = Preferences::tr("Adobe Photoshop");+ lfv[1].m_pathFormat = QRegExp("..*\\.psd", Qt::CaseInsensitive);+ lfv[1].m_options.m_premultiply = true;}}