File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -691,7 +691,9 @@ bool AnimationMixer::_update_caches() {
691691
692692 track = track_value;
693693
694- track_value->init_value = anim->track_get_key_value (i, 0 );
694+ bool is_value = track_src_type == Animation::TYPE_VALUE;
695+
696+ track_value->init_value = is_value ? anim->track_get_key_value (i, 0 ) : (anim->track_get_key_value (i, 0 ).operator Array ())[0 ];
695697 track_value->init_value .zero ();
696698
697699 track_value->is_init = false ;
@@ -703,7 +705,7 @@ bool AnimationMixer::_update_caches() {
703705 if (has_reset_anim) {
704706 int rt = reset_anim->find_track (path, track_src_type);
705707 if (rt >= 0 ) {
706- if (track_src_type == Animation::TYPE_VALUE ) {
708+ if (is_value ) {
707709 if (reset_anim->track_get_key_count (rt) > 0 ) {
708710 track_value->init_value = reset_anim->track_get_key_value (rt, 0 );
709711 }
You can’t perform that action at this time.
0 commit comments