summaryrefslogtreecommitdiffstats
path: root/modules/fbx/fbx_document.cpp
diff options
context:
space:
mode:
authorLyuma <xn.lyuma@gmail.com>2024-04-19 02:05:46 -0700
committerLyuma <xn.lyuma@gmail.com>2024-04-19 03:02:20 -0700
commitbb9674c1b1817d01152672c54c4ca3a4231cdb65 (patch)
tree5c0e614c0001d74242ac8dc191391fdd54c88eab /modules/fbx/fbx_document.cpp
parent2efbc6bfb3b4f49a6bc75b3d367cfe81eeddbf3a (diff)
downloadredot-engine-bb9674c1b1817d01152672c54c4ca3a4231cdb65.tar.gz
Set animation step from importers. Increase default step from 10 to 30 FPS.
Diffstat (limited to 'modules/fbx/fbx_document.cpp')
-rw-r--r--modules/fbx/fbx_document.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/fbx/fbx_document.cpp b/modules/fbx/fbx_document.cpp
index 44a929d285..685687ea85 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);