diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-22 09:59:54 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-22 09:59:54 +0100 |
commit | dff8a51c6c75902f71bf0279f874fc56e502824c (patch) | |
tree | 3d05e9b88d55e53d7bf6d5d70fb7b61c1ef49c85 /scene/animation/animation_blend_space_1d.cpp | |
parent | 4b4e701e06ecae6f754d206016b8dec5b9bb62d4 (diff) | |
parent | 17ce879a15dac1d79f5c9a093b0cc54b8e8ff02e (diff) |
Merge pull request #68593 from TokageItLab/optimize-blend-animation
Optimize animation blend tree process
Diffstat (limited to 'scene/animation/animation_blend_space_1d.cpp')
-rw-r--r-- | scene/animation/animation_blend_space_1d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/animation/animation_blend_space_1d.cpp b/scene/animation/animation_blend_space_1d.cpp index f30aea3bdd..3153572517 100644 --- a/scene/animation/animation_blend_space_1d.cpp +++ b/scene/animation/animation_blend_space_1d.cpp @@ -309,8 +309,8 @@ double AnimationNodeBlendSpace1D::process(double p_time, bool p_seek, bool p_see if (i == point_lower || i == point_higher) { double remaining = blend_node(blend_points[i].name, blend_points[i].node, p_time, p_seek, p_seek_root, weights[i], FILTER_IGNORE, true); max_time_remaining = MAX(max_time_remaining, remaining); - } else { - blend_node(blend_points[i].name, blend_points[i].node, p_time, p_seek, p_seek_root, 0, FILTER_IGNORE, sync); + } else if (sync) { + blend_node(blend_points[i].name, blend_points[i].node, p_time, p_seek, p_seek_root, 0, FILTER_IGNORE, true); } } |