浏览代码

Fix BlendSpace2D sync flagging line

Silc Lizard (Tokage) Renew 1 年之前
父节点
当前提交
eacc122f32
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/animation/animation_blend_space_2d.cpp

+ 1 - 1
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