summaryrefslogtreecommitdiff
path: root/scene/animation
diff options
context:
space:
mode:
authorSilc Renew <tokage.it.lab@gmail.com>2023-01-22 06:52:40 +0900
committerSilc Renew <tokage.it.lab@gmail.com>2023-01-22 06:52:40 +0900
commit451cb5577d4934d82afcdcb0c9ed43a58626bf91 (patch)
treebbb165a044e44b5ea8b0795dd2e9f5960cc1f58c /scene/animation
parent4db3716d8d9bbc95c031818b190002602558b0f2 (diff)
Fix wrong BezierTrack init value
Diffstat (limited to 'scene/animation')
-rw-r--r--scene/animation/animation_tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp
index dd00897422..077a5696bb 100644
--- a/scene/animation/animation_tree.cpp
+++ b/scene/animation/animation_tree.cpp
@@ -754,7 +754,7 @@ bool AnimationTree::_update_caches(AnimationPlayer *player) {
if (has_reset_anim) {
int rt = reset_anim->find_track(path, track_type);
if (rt >= 0 && reset_anim->track_get_key_count(rt) > 0) {
- track_bezier->init_value = reset_anim->track_get_key_value(rt, 0);
+ track_bezier->init_value = (reset_anim->track_get_key_value(rt, 0).operator Array())[0];
}
}
} break;