summaryrefslogtreecommitdiffstats
path: root/scene/animation
diff options
context:
space:
mode:
authorSilc Lizard (Tokage) Renew <61938263+TokageItLab@users.noreply.github.com>2024-06-04 05:52:39 +0900
committerSilc Lizard (Tokage) Renew <61938263+TokageItLab@users.noreply.github.com>2024-06-04 05:52:39 +0900
commiteacc122f32868f005d39d222624a2cbec1f34e11 (patch)
treeb817e5b9439e32c889a1fb1301354a40d256142c /scene/animation
parent705b7a0b0bd535c95e4e8fb439f3d84b3fb4f427 (diff)
downloadredot-engine-eacc122f32868f005d39d222624a2cbec1f34e11.tar.gz
Fix BlendSpace2D sync flagging line
Diffstat (limited to 'scene/animation')
-rw-r--r--scene/animation/animation_blend_space_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_blend_space_2d.cpp b/scene/animation/animation_blend_space_2d.cpp
index 2634248231..9c5787b97c 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