Explorar o código

Set initial value for autorestart_random_delay of AnimationNodeOneShot

volzhs %!s(int64=6) %!d(string=hai) anos
pai
achega
eea3bddd1d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      scene/animation/animation_blend_tree.cpp

+ 1 - 0
scene/animation/animation_blend_tree.cpp

@@ -363,6 +363,7 @@ AnimationNodeOneShot::AnimationNodeOneShot() {
 	fade_out = 0.1;
 	autorestart = false;
 	autorestart_delay = 1;
+	autorestart_random_delay = 0;
 
 	mix = MIX_MODE_BLEND;
 	sync = false;