Jelajahi Sumber

Fix typo in KeyframeTrack.optimize()

Don McCurdy 4 tahun lalu
induk
melakukan
0bb92db3df
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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
 			// 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 ) {
 				if ( ! smoothInterpolation ) {