implement ping-pong loop in animation
Co-authored-by: Chaosus <chaosus89@gmail.com>
This commit is contained in:
committed by
Silc 'Tokage' Renew
parent
e8c89b2b91
commit
372ba76663
@@ -5815,7 +5815,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;
|
||||
|
||||
Reference in New Issue
Block a user