Update Info.cpp

Add a simple check to avoid verbose + silent mode together,
pull/2270/head
Kim Kulling 2018-12-22 09:12:10 +01:00 committed by GitHub
parent b71b7982b5
commit 194b59b3b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -319,6 +319,12 @@ int Assimp_Info (const char* const* params, unsigned int num)
} }
} }
// Verbose and silent at the same time are not allowed
if ( verbose && silent ) {
printf("assimp info: Invalid arguments, verbose and silent at the same time are forbitten. ");
return 1;
}
// do maximum post-processing unless -r was specified // do maximum post-processing unless -r was specified
ImportData import; ImportData import;
if (!raw) { if (!raw) {