From 3b73caa8e8165a0c3731a4a38407815b3e92bf36 Mon Sep 17 00:00:00 2001 From: Daniel Borges Date: Fri, 19 Jul 2024 12:34:16 +0200 Subject: [PATCH] fixed ParseAnimation loading animation's extensions into sampler instead of sample's extensions. --- tiny_gltf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 2fa0c21..1e99643 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -5597,7 +5597,7 @@ static bool ParseAnimation(Animation *animation, std::string *err, } sampler.input = inputIndex; sampler.output = outputIndex; - ParseExtrasAndExtensions(&sampler, err, o, + ParseExtrasAndExtensions(&sampler, err, s, store_original_json_for_extras_and_extensions); animation->samplers.emplace_back(std::move(sampler));