assorted bug fixes

This commit is contained in:
tmj-fstate
2017-01-23 11:06:34 +01:00
parent 538d130617
commit 77d462ffe4
13 changed files with 68 additions and 72 deletions

View File

@@ -1844,7 +1844,11 @@ bool TModel3d::LoadFromFile(std::string const &FileName, bool dynamic) {
Init(); // generowanie siatek i zapis E3D
}
}
return Root ? (iSubModelsCount > 0) : false; // brak pliku albo problem z wczytaniem
bool const result = Root ? (iSubModelsCount > 0) : false; // brak pliku albo problem z wczytaniem
if( false == result ) {
ErrorLog( "Failed to load 3d model \"" + FileName + "\"" );
}
return result;
};
void TModel3d::LoadFromBinFile(std::string const &FileName, bool dynamic)