소스 검색

AnimationUtils: Define numTracks using referenceClip rather than targetClip

Christine 4 년 전
부모
커밋
8658d32261
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/animation/AnimationUtils.js

+ 1 - 1
src/animation/AnimationUtils.js

@@ -236,7 +236,7 @@ const AnimationUtils = {
 		if ( referenceClip === undefined ) referenceClip = targetClip;
 		if ( fps === undefined || fps <= 0 ) fps = 30;
 
-		const numTracks = targetClip.tracks.length;
+		const numTracks = referenceClip.tracks.length;
 		const referenceTime = referenceFrame / fps;
 
 		// Make each track's values relative to the values at the reference frame