Explorar o código

Merge pull request #21071 from mrdoob/donmccurdy-keyframetrack-optimize-typo

KeyframeTrack: Fix typo in optimize().
Mr.doob %!s(int64=4) %!d(string=hai) anos
pai
achega
cf04fca253
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 ) {