1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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

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 {