fix wrong size
parent
f808ed9fb5
commit
da2bf5c7a4
|
@ -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());
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue