fbxconverter: fix memoryleak.

pull/3171/head
Kim Kulling 2020-04-29 20:52:49 +02:00
parent c6131ce38a
commit f808ed9fb5
1 changed files with 1 additions and 1 deletions

View File

@ -3392,7 +3392,7 @@ void FBXConverter::ConvertGlobalSettings() {
const bool hasGenerator = !doc.Creator().empty();
mSceneOut->mMetaData = aiMetadata::Alloc(16 + (hasGenerator ? 1 : 0));
mSceneOut->mMetaData = aiMetadata::Alloc(17 + (hasGenerator ? 1 : 0));
mSceneOut->mMetaData->Set(0, "UpAxis", doc.GlobalSettings().UpAxis());
mSceneOut->mMetaData->Set(1, "UpAxisSign", doc.GlobalSettings().UpAxisSign());
mSceneOut->mMetaData->Set(2, "FrontAxis", doc.GlobalSettings().FrontAxis());