浏览代码

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

KeyframeTrack: Fix typo in optimize().
Mr.doob 4 年之前
父节点
当前提交
cf04fca253
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 ) {