Skip to content

[rmodels] Fix GLTF animation interpolation - #6007

Merged
raysan5 merged 1 commit into
raysan5:masterfrom
lassade:fix-gltf-animation-interpolate
Jul 23, 2026
Merged

[rmodels] Fix GLTF animation interpolation#6007
raysan5 merged 1 commit into
raysan5:masterfrom
lassade:fix-gltf-animation-interpolate

Conversation

@lassade

@lassade lassade commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Hi

In the wild some animations use different sampler interpolation (linear/step) for differents channels (translate/rotate/scale) of the same bone, but raylib defaults to a single interpolation type based on the last channel found, so if we get translate (linear) rotate (step) scale(step) the translation will be sampled using the step interpolator.

This patch simples use the channel sampler interpolation fixing the issue

@raysan5
raysan5 merged commit 353268b into raysan5:master Jul 23, 2026
16 checks passed
@raysan5

raysan5 commented Jul 23, 2026

Copy link
Copy Markdown
Owner

@lassade Thanks for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants