Explorar o código

Fix typo in KeyframeTrack.optimize()

Don McCurdy %!s(int64=4) %!d(string=hai) anos
pai
achega
0bb92db3df
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/animation/KeyframeTrack.js

+ 1 - 1
src/animation/KeyframeTrack.js

@@ -363,7 +363,7 @@ Object.assign( KeyframeTrack.prototype, {
 
 			// remove adjacent keyframes scheduled at the same time
 
-			if ( time !== timeNext && ( i !== 1 || time !== time[ 0 ] ) ) {
+			if ( time !== timeNext && ( i !== 1 || time !== times[ 0 ] ) ) {
 
 				if ( ! smoothInterpolation ) {