summaryrefslogtreecommitdiffstats
path: root/scene/animation/animation_player.cpp
diff options
context:
space:
mode:
authorSilc Renew <tokage.it.lab@gmail.com>2023-02-21 11:26:23 +0900
committerSilc Lizard (Tokage) Renew <61938263+TokageItLab@users.noreply.github.com>2023-04-25 01:45:14 +0900
commitfac8a918f97e831de6070377e7f3475071d4ed84 (patch)
treeaa592b2fb0aec86657ee0b5acd92de35a21fb563 /scene/animation/animation_player.cpp
parent14c582bca81046fdde35e16088ddfd5df0136d56 (diff)
downloadredot-engine-fac8a918f97e831de6070377e7f3475071d4ed84.tar.gz
Expose interpolation methods for 3D track in Animation class
Diffstat (limited to 'scene/animation/animation_player.cpp')
-rw-r--r--scene/animation/animation_player.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp
index fc3a3d306f..9835e7a065 100644
--- a/scene/animation/animation_player.cpp
+++ b/scene/animation/animation_player.cpp
@@ -528,7 +528,7 @@ void AnimationPlayer::_animation_process_animation(AnimationData *p_anim, double
Vector3 loc;
- Error err = a->position_track_interpolate(i, p_time, &loc);
+ Error err = a->try_position_track_interpolate(i, p_time, &loc);
//ERR_CONTINUE(err!=OK); //used for testing, should be removed
if (err != OK) {
@@ -556,7 +556,7 @@ void AnimationPlayer::_animation_process_animation(AnimationData *p_anim, double
Quaternion rot;
- Error err = a->rotation_track_interpolate(i, p_time, &rot);
+ Error err = a->try_rotation_track_interpolate(i, p_time, &rot);
//ERR_CONTINUE(err!=OK); //used for testing, should be removed
if (err != OK) {
@@ -584,7 +584,7 @@ void AnimationPlayer::_animation_process_animation(AnimationData *p_anim, double
Vector3 scale;
- Error err = a->scale_track_interpolate(i, p_time, &scale);
+ Error err = a->try_scale_track_interpolate(i, p_time, &scale);
//ERR_CONTINUE(err!=OK); //used for testing, should be removed
if (err != OK) {
@@ -612,7 +612,7 @@ void AnimationPlayer::_animation_process_animation(AnimationData *p_anim, double
float blend;
- Error err = a->blend_shape_track_interpolate(i, p_time, &blend);
+ Error err = a->try_blend_shape_track_interpolate(i, p_time, &blend);
//ERR_CONTINUE(err!=OK); //used for testing, should be removed
if (err != OK) {