We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents decb559 + 7768dea commit 1025d6fCopy full SHA for 1025d6f
scene/animation/animation_blend_tree.cpp
@@ -268,11 +268,14 @@ AnimationNode::NodeTimeInfo AnimationNodeAnimation::_process(const AnimationMixe
268
AnimationMixer::PlaybackInfo pi = p_playback_info;
269
pi.start = 0.0;
270
pi.end = cur_len;
271
- if (node_backward ? cur_backward : !cur_backward) {
+ if (play_mode == PLAY_MODE_FORWARD) {
272
pi.time = cur_playback_time;
273
- pi.delta = cur_delta;
274
} else {
275
pi.time = anim_size - cur_playback_time;
+ }
276
+ if (node_backward ? cur_backward : !cur_backward) {
277
+ pi.delta = cur_delta;
278
+ } else {
279
pi.delta = -cur_delta;
280
}
281
pi.weight = 1.0;
0 commit comments