Explorar o código

fix when onAnimEnd not set

ncannasse %!s(int64=10) %!d(string=hai) anos
pai
achega
d601b19716
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      h3d/anim/SmoothTarget.hx

+ 1 - 1
h3d/anim/SmoothTarget.hx

@@ -69,7 +69,7 @@ class SmoothTarget extends Animation {
 		frame = target.frame;
 		if( blend > 1 ) {
 			blend = 1;
-			onAnimEnd();
+			if( onAnimEnd != null ) onAnimEnd();
 		}
 		return rt;
 	}