Fix aiString length in aiProcess_EmbedTextures
parent
3e4cca4d2f
commit
ae951fbef9
|
@ -89,7 +89,7 @@ void EmbedTexturesProcess::Execute(aiScene* pScene) {
|
|||
// Indeed embed
|
||||
if (addTexture(pScene, path.data)) {
|
||||
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));
|
||||
embeddedTexturesCount++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue