Skip to content

GLTF: Enforce STEP interpolation for integer and boolean animations#111615

Merged
Repiteo merged 1 commit into
godotengine:masterfrom
aaronfranke:gltf-anim-ptr-int-erpolate
Oct 21, 2025
Merged

GLTF: Enforce STEP interpolation for integer and boolean animations#111615
Repiteo merged 1 commit into
godotengine:masterfrom
aaronfranke:gltf-anim-ptr-int-erpolate

Conversation

@aaronfranke

@aaronfranke aaronfranke commented Oct 13, 2025

Copy link
Copy Markdown
Member

The KHR_animation_pointer specification is very clear:

Animation samplers used with int or bool Object Model Data Types MUST use STEP interpolation.

This PR updates the glTF animation export to ensure that STEP interpolation is used. For the sake of user-friendliness, if a Godot animation track has an incorrect interpolation type, a warning will be printed:

Screenshot 2025-10-13 at 12 50 12 PM

This is required to fix incorrect exports of KHR_node_visibility animations.

@Repiteo Repiteo merged commit 7d7d479 into godotengine:master Oct 21, 2025
20 checks passed
@github-project-automation github-project-automation Bot moved this from Ready for review to Done in Asset Pipeline Issue Triage Oct 21, 2025
@Repiteo

Repiteo commented Oct 21, 2025

Copy link
Copy Markdown
Contributor

Thanks!

@aaronfranke aaronfranke deleted the gltf-anim-ptr-int-erpolate branch October 21, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants