diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-11-09 22:11:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 22:11:04 +0100 |
commit | 06a33e590f029d4d96e32df62f3c3961e1c33e4e (patch) | |
tree | d91ff1e2c78a31d2897a2cc49218d4f3b7535459 /modules/gltf/gltf_document.cpp | |
parent | efea3128c3b0d026a20efaf6bd46058c2b732519 (diff) | |
parent | 953a7bce7edf289dd8d2a1a6c8ecd8105380c8da (diff) | |
download | redot-engine-06a33e590f029d4d96e32df62f3c3961e1c33e4e.tar.gz |
Merge pull request #53819 from TokageItLab/re-implement-ping-pong
Reimplement ping-pong animation and reverse playback
Diffstat (limited to 'modules/gltf/gltf_document.cpp')
-rw-r--r-- | modules/gltf/gltf_document.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp index ced80e26b5..0b2854e731 100644 --- a/modules/gltf/gltf_document.cpp +++ b/modules/gltf/gltf_document.cpp @@ -5856,7 +5856,7 @@ void GLTFDocument::_import_animation(Ref<GLTFState> state, AnimationPlayer *ap, animation->set_name(name); if (anim->get_loop()) { - animation->set_loop(true); + animation->set_loop_mode(Animation::LOOP_LINEAR); } float length = 0.0; |