Reserve space for animation samplers in serialization

This commit is contained in:
Jacek
2020-01-06 15:15:21 -06:00
parent 45ccfda5bb
commit 7ddfe918c6
+1
View File
@@ -6074,6 +6074,7 @@ static void SerializeGltfAnimation(Animation &animation, json &o) {
{
json samplers;
JsonReserveArray(samplers, animation.samplers.size());
for (unsigned int i = 0; i < animation.samplers.size(); ++i) {
json sampler;
AnimationSampler gltfSampler = animation.samplers[i];