Godot Engine – Multi-platform 2D and 3D game engine
Fix AnimationNode's branching by custom timeline usage
Silc Lizard (Tokage) Renew4b82c44607c9
diff --git a/scene/animation/animation_blend_tree.cpp b/scene/animation/animation_blend_tree.cppindex 965e1398f32..4309986ed77 100644--- a/scene/animation/animation_blend_tree.cpp+++ b/scene/animation/animation_blend_tree.cpp@@ -207,7 +207,7 @@ AnimationNode::NodeTimeInfo AnimationNodeAnimation::_process(ProcessState &p_pro// 3. Progress for Animation.double prev_playback_time = prev_time;double cur_playback_time = cur_time;- if (stretch_time_scale) {+ if (use_custom_timeline && stretch_time_scale) {double mlt = anim_size / timeline_length;prev_playback_time *= mlt;cur_playback_time *= mlt;