mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-04-22 22:20:01 +08:00
Merge pull request #233 from 8i/fix-animation-sampler-serialization
Reserve space for animation samplers in serialization
This commit is contained in:
commit
ddc14f8ba6
@ -6465,6 +6465,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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user