From eacc122f32868f005d39d222624a2cbec1f34e11 Mon Sep 17 00:00:00 2001 From: "Silc Lizard (Tokage) Renew" <61938263+TokageItLab@users.noreply.github.com> Date: Tue, 4 Jun 2024 05:52:39 +0900 Subject: [PATCH] Fix BlendSpace2D sync flagging line --- scene/animation/animation_blend_space_2d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/animation/animation_blend_space_2d.cpp b/scene/animation/animation_blend_space_2d.cpp index 26342482317..9c5787b97ce 100644 --- a/scene/animation/animation_blend_space_2d.cpp +++ b/scene/animation/animation_blend_space_2d.cpp @@ -511,9 +511,9 @@ AnimationNode::NodeTimeInfo AnimationNodeBlendSpace2D::_process(const AnimationM first = true; - bool found = false; double max_weight = 0.0; for (int i = 0; i < blend_points_used; i++) { + bool found = false; for (int j = 0; j < 3; j++) { if (i == triangle_points[j]) { //blend with the given weight