Fixed redundant condition check in in initToonzEnv (#1909)
This commit is contained in:
parent
a048bcf55e
commit
fcb9e4791d
1 changed files with 9 additions and 8 deletions
|
@ -166,15 +166,16 @@ static void initToonzEnv() {
|
|||
|
||||
/*-- TOONZROOTのPathの確認 --*/
|
||||
// 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();
|
||||
if (stuffDir == TFilePath() || !TFileStatus(stuffDir).isDirectory()) {
|
||||
if (stuffDir == TFilePath())
|
||||
fatalError("Undefined or empty: \"" + toQString(TEnv::getRootVarPath()) +
|
||||
"\"");
|
||||
else
|
||||
fatalError("Folder \"" + toQString(stuffDir) +
|
||||
"\" not found or not readable");
|
||||
}
|
||||
fatalError("Undefined or empty: \"" + toQString(TEnv::getRootVarPath()) + "\"");
|
||||
else if (!TFileStatus(stuffDir).isDirectory())
|
||||
fatalError("Folder \"" + toQString(stuffDir) + "\" not found or not readable");
|
||||
|
||||
Tiio::defineStd();
|
||||
initImageIo();
|
||||
|
|
Loading…
Reference in a new issue