Explorar el Código

Merge pull request #27814 from nekomatata/transition-node-xfade

Fixed uninitialized xfade in AnimationNodeTransition
Rémi Verschelde hace 6 años
padre
commit
8fb54ef19b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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++) {