1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Merge pull request #90894 from lyuma/animation_step_30

Set animation step from importers. Increase default step from 10 to 30FPS
This commit is contained in:
Rémi Verschelde
2024-04-24 09:59:21 +02:00
8 changed files with 12 additions and 3 deletions

View File

@@ -1699,6 +1699,7 @@ void FBXDocument::_import_animation(Ref<FBXState> p_state, AnimationPlayer *p_an
Ref<Animation> animation;
animation.instantiate();
animation->set_name(anim_name);
animation->set_step(1.0 / p_bake_fps);
if (anim->get_loop()) {
animation->set_loop_mode(Animation::LOOP_LINEAR);