Merge pull request #2480 from aavenel/ParsePostProcessArgs

Parse post process arguments when using info tool
pull/2491/head^2
Kim Kulling 2019-05-29 08:59:06 +02:00 committed by GitHub
commit eb6d9db505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -317,10 +317,15 @@ int Assimp_Info (const char* const* params, unsigned int num) {
return 1;
}
// do maximum post-processing unless -r was specified
// Parse post-processing flags unless -r was specified
ImportData import;
if (!raw) {
import.ppFlags = aiProcessPreset_TargetRealtime_MaxQuality;
// get import flags
ProcessStandardArguments(import, params + 1, num - 1);
//No custom post process flags defined, we set all the post process flags active
if(import.ppFlags == 0)
import.ppFlags |= aiProcessPreset_TargetRealtime_MaxQuality;
}
// import the main model