浏览代码

Fixed uninitialized xfade in AnimationNodeTransition

(cherry picked from commit dafd7768ab08f212c8b86756def4201c381cbcbc)
PouleyKetchoupp 6 年之前
父节点
当前提交
a028160522
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scene/animation/animation_blend_tree.cpp

+ 1 - 0
scene/animation/animation_blend_tree.cpp

@@ -857,6 +857,7 @@ AnimationNodeTransition::AnimationNodeTransition() {
 	time = "time";
 	current = "current";
 	prev_current = "prev_current";
+	xfade = 0.0;
 
 	enabled_inputs = 0;
 	for (int i = 0; i < MAX_INPUTS; i++) {