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

@ -490,7 +490,9 @@ namespace glTF {
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);
}