asset.version from int to string

pull/1015/head
Angelo Scandaliato 2016-09-27 11:38:17 -07:00
parent 36d770d3db
commit 3e322495f2
1 changed files with 5 additions and 3 deletions

View File

@ -282,7 +282,7 @@ namespace glTF {
}
primitives.PushBack(prim, w.mAl);
}
obj.AddMember("primitives", primitives, w.mAl);
}
@ -484,13 +484,15 @@ namespace glTF {
}
}
inline void AssetWriter::WriteMetadata()
{
Value asset;
asset.SetObject();
{
asset.AddMember("version", mAsset.asset.version, mAl);
char versionChar[10];
snprintf(versionChar, sizeof(versionChar), "%d", mAsset.asset.version);
asset.AddMember("version", Value(versionChar, mAl).Move(), mAl);
asset.AddMember("generator", Value(mAsset.asset.generator, mAl).Move(), mAl);
}