فهرست منبع

Merge pull request #20410 from c-morten/Additive_Animation

AnimationUtils: Define numTracks using referenceClip rather than targ…
Mr.doob 4 سال پیش
والد
کامیت
1f4aeca928
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