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の確認 --*/
|
/*-- 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();
|
||||||
|
|
Loading…
Reference in a new issue