Fix backward root motion in AnimationTree

(cherry picked from commit 749d9b95b9)
This commit is contained in:
Silc Lizard (Tokage) Renew 2025-09-28 07:32:07 +09:00 committed by Rémi Verschelde
parent 95d452fad9
commit f12cc7a014
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -268,7 +268,7 @@ AnimationNode::NodeTimeInfo AnimationNodeAnimation::_process(const AnimationMixe
AnimationMixer::PlaybackInfo pi = p_playback_info;
pi.start = 0.0;
pi.end = cur_len;
if (play_mode == PLAY_MODE_FORWARD) {
if (node_backward ? cur_backward : !cur_backward) {
pi.time = cur_playback_time;
pi.delta = cur_delta;
} else {