diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-22 11:08:09 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-22 11:08:09 +0100 |
commit | 813d7c417be0e9a517ddfbec500bba7f5d3f39dc (patch) | |
tree | f72b628b2357924b49029773dfcbfc8afc0af7f5 /scene/animation | |
parent | bda87300e8d846987c1a6c4216c201c5ce16b8fe (diff) | |
parent | 451cb5577d4934d82afcdcb0c9ed43a58626bf91 (diff) |
Merge pull request #71823 from TokageItLab/fix-bezier-init
Fix wrong BezierTrack init value
Diffstat (limited to 'scene/animation')
-rw-r--r-- | scene/animation/animation_tree.cpp | 2 |
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; |