Merge pull request #4108 from davidepi/fix-aistring-embedtextures
Fix aiString length not updated in the EmbedTextures postprocess taskpull/3845/head^2
commit
babf3b8e3d
|
@ -89,7 +89,7 @@ void EmbedTexturesProcess::Execute(aiScene* pScene) {
|
||||||
// Indeed embed
|
// Indeed embed
|
||||||
if (addTexture(pScene, path.data)) {
|
if (addTexture(pScene, path.data)) {
|
||||||
auto embeddedTextureId = pScene->mNumTextures - 1u;
|
auto embeddedTextureId = pScene->mNumTextures - 1u;
|
||||||
::ai_snprintf(path.data, 1024, "*%u", embeddedTextureId);
|
path.length = ::ai_snprintf(path.data, 1024, "*%u", embeddedTextureId);
|
||||||
material->AddProperty(&path, AI_MATKEY_TEXTURE(tt, texId));
|
material->AddProperty(&path, AI_MATKEY_TEXTURE(tt, texId));
|
||||||
embeddedTexturesCount++;
|
embeddedTexturesCount++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue