Modify glTFBuffer.byteslength after VRM export #12

This commit is contained in:
ousttrue
2018-05-30 20:30:39 +09:00
parent 99bd2ab74f
commit 65f7271360

View File

@@ -30,6 +30,13 @@ namespace VRM
exporter.WriteTo(path);
}
}
// update buffer size
foreach (var b in gltf.buffers)
{
b.UpdateByteLength();
}
return gltf;
}