Merge pull request #71823 from TokageItLab/fix-bezier-init

Fix wrong BezierTrack init value
This commit is contained in:
Rémi Verschelde 2023-01-22 11:08:09 +01:00
commit 813d7c417b
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -754,7 +754,7 @@ bool AnimationTree::_update_caches(AnimationPlayer *player) {
if (has_reset_anim) { if (has_reset_anim) {
int rt = reset_anim->find_track(path, track_type); int rt = reset_anim->find_track(path, track_type);
if (rt >= 0 && reset_anim->track_get_key_count(rt) > 0) { 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; } break;