Fix #2149 Add flag to embed textures in assimp_cmd

pull/2152/head
Alexandre Avenel 2018-09-21 19:35:54 +02:00
parent d585030310
commit b3e858956a
1 changed files with 3 additions and 0 deletions

View File

@ -466,6 +466,9 @@ int ProcessStandardArguments(
else if (! strcmp( param, "-sbc") || ! strcmp( param, "--split-by-bone-count")) { else if (! strcmp( param, "-sbc") || ! strcmp( param, "--split-by-bone-count")) {
fill.ppFlags |= aiProcess_SplitByBoneCount; fill.ppFlags |= aiProcess_SplitByBoneCount;
} }
else if (!strcmp(param, "-embtex") || ! strcmp(param, "--embed-textures")) {
fill.ppFlags |= aiProcess_EmbedTextures;
}
else if (! strncmp( param, "-c",2) || ! strncmp( param, "--config=",9)) { else if (! strncmp( param, "-c",2) || ! strncmp( param, "--config=",9)) {
const unsigned int ofs = (params[i][1] == '-' ? 9 : 2); const unsigned int ofs = (params[i][1] == '-' ? 9 : 2);