Set animation step from importers. Increase default step from 10 to 30 FPS.

This commit is contained in:
Lyuma
2024-04-19 02:05:46 -07:00
parent 2efbc6bfb3
commit bb9674c1b1
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);