diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-04-24 09:59:21 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-04-24 09:59:21 +0200 |
commit | 17d9c52ad90175b7f18340eec29660687f7c63dc (patch) | |
tree | 0fca177c2711bffbd58920536439f5c3496f33d4 /modules | |
parent | 149023335d06ee2f10c823051dd12cfc704aa7fd (diff) | |
parent | bb9674c1b1817d01152672c54c4ca3a4231cdb65 (diff) | |
download | redot-engine-17d9c52ad90175b7f18340eec29660687f7c63dc.tar.gz |
Merge pull request #90894 from lyuma/animation_step_30
Set animation step from importers. Increase default step from 10 to 30FPS
Diffstat (limited to 'modules')
-rw-r--r-- | modules/fbx/fbx_document.cpp | 1 | ||||
-rw-r--r-- | modules/gltf/gltf_document.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/fbx/fbx_document.cpp b/modules/fbx/fbx_document.cpp index 95b4a91809..e92609f42f 100644 --- a/modules/fbx/fbx_document.cpp +++ b/modules/fbx/fbx_document.cpp @@ -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); diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp index 8f0f0d219e..4c32a29ce0 100644 --- a/modules/gltf/gltf_document.cpp +++ b/modules/gltf/gltf_document.cpp @@ -5881,6 +5881,7 @@ void GLTFDocument::_import_animation(Ref<GLTFState> p_state, AnimationPlayer *p_ 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); |