mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-11 12:04:46 +00:00
Fixed: Display an error if unable to find database.cfg
This commit is contained in:
parent
00a57b43c5
commit
24a7381390
1 changed files with 6 additions and 1 deletions
|
@ -292,7 +292,12 @@ int exportScene(const CMeshUtilsSettings &settings)
|
|||
context.ToolLogger.writeDepend(NLMISC::BUILD, "*", NLMISC::CPath::standardizePath(context.Settings.SourceFilePath, false).c_str()); // Base input file
|
||||
|
||||
// Apply database configuration
|
||||
CDatabaseConfig::init(settings.SourceFilePath);
|
||||
if (!CDatabaseConfig::init(settings.SourceFilePath))
|
||||
{
|
||||
tlerror(context.ToolLogger, context.Settings.SourceFilePath.c_str(), "Unable to find database.cfg in input path or any of its parents.");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
CDatabaseConfig::initTextureSearchDirectories();
|
||||
|
||||
Assimp::Importer importer;
|
||||
|
|
Loading…
Reference in a new issue