Fixed redundant condition check in in initToonzEnv (#1909)

This commit is contained in:
cclark25 2018-05-11 01:11:01 -04:00 committed by shun-iwasawa
parent a048bcf55e
commit fcb9e4791d

View file

@ -166,15 +166,16 @@ static void initToonzEnv() {
/*-- TOONZROOTのPathの確認 --*/ /*-- TOONZROOTのPathの確認 --*/
// controllo se la xxxroot e' definita e corrisponde ad un folder esistente // controllo se la xxxroot e' definita e corrisponde ad un folder esistente
/*-- ENGLISH: Confirm TOONZROOT Path
Check if the xxxroot is defined and corresponds to an existing folder
--*/
TFilePath stuffDir = TEnv::getStuffDir(); TFilePath stuffDir = TEnv::getStuffDir();
if (stuffDir == TFilePath() || !TFileStatus(stuffDir).isDirectory()) {
if (stuffDir == TFilePath()) if (stuffDir == TFilePath())
fatalError("Undefined or empty: \"" + toQString(TEnv::getRootVarPath()) + fatalError("Undefined or empty: \"" + toQString(TEnv::getRootVarPath()) + "\"");
"\""); else if (!TFileStatus(stuffDir).isDirectory())
else fatalError("Folder \"" + toQString(stuffDir) + "\" not found or not readable");
fatalError("Folder \"" + toQString(stuffDir) +
"\" not found or not readable");
}
Tiio::defineStd(); Tiio::defineStd();
initImageIo(); initImageIo();