Merge pull request #2152 from aavenel/ExposeEmbedTexture

Fix #2149 Add flag to embed textures in assimp_cmd
pull/2150/head^2
Kim Kulling 2018-09-22 19:06:44 +02:00 committed by GitHub
commit b7bb38247f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);