fixed ParseAnimation loading animation's extensions into sampler instead of sample's extensions.

This commit is contained in:
Daniel Borges 2024-07-19 12:34:16 +02:00 committed by GitHub
parent fea6786129
commit 3b73caa8e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5597,7 +5597,7 @@ static bool ParseAnimation(Animation *animation, std::string *err,
} }
sampler.input = inputIndex; sampler.input = inputIndex;
sampler.output = outputIndex; sampler.output = outputIndex;
ParseExtrasAndExtensions(&sampler, err, o, ParseExtrasAndExtensions(&sampler, err, s,
store_original_json_for_extras_and_extensions); store_original_json_for_extras_and_extensions);
animation->samplers.emplace_back(std::move(sampler)); animation->samplers.emplace_back(std::move(sampler));