fix wrong size

pull/3171/head
Kim Kulling 2020-04-29 21:13:46 +02:00
parent f808ed9fb5
commit da2bf5c7a4
2 changed files with 2 additions and 2 deletions

View File

@ -3392,7 +3392,7 @@ void FBXConverter::ConvertGlobalSettings() {
const bool hasGenerator = !doc.Creator().empty();
mSceneOut->mMetaData = aiMetadata::Alloc(17 + (hasGenerator ? 1 : 0));
mSceneOut->mMetaData = aiMetadata::Alloc(16 + (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());

View File

@ -320,7 +320,7 @@ struct aiMetadata {
}
template <typename T>
inline bool Set( const std::string &key, const T &value ) {
inline bool Set(const std::string &key, const T &value) {
if (key.empty()) {
return false;
}