OpenToonz - An open-source full-featured 2D animation creation software
C
Fixed redundant condition check in in initToonzEnv (#1909)
cclark25fcb9e4791d36
diff --git a/toonz/sources/toonz/main.cpp b/toonz/sources/toonz/main.cppindex bcf68ef93..f338a23d7 100644--- a/toonz/sources/toonz/main.cpp+++ b/toonz/sources/toonz/main.cpp@@ -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");- }+ if (stuffDir == TFilePath())+ fatalError("Undefined or empty: \"" + toQString(TEnv::getRootVarPath()) + "\"");+ else if (!TFileStatus(stuffDir).isDirectory())+ fatalError("Folder \"" + toQString(stuffDir) + "\" not found or not readable");Tiio::defineStd();initImageIo();