From a60b7696e3509b3e95d80f2e0557464b572bff62 Mon Sep 17 00:00:00 2001 From: Alexandre Avenel Date: Sun, 17 Feb 2019 11:44:02 +0100 Subject: [PATCH] Parse post process arguments when using info tool --- tools/assimp_cmd/Info.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/assimp_cmd/Info.cpp b/tools/assimp_cmd/Info.cpp index b504083d3..d730b9308 100644 --- a/tools/assimp_cmd/Info.cpp +++ b/tools/assimp_cmd/Info.cpp @@ -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