2
0
Эх сурвалжийг харах

Merge pull request #20410 from c-morten/Additive_Animation

AnimationUtils: Define numTracks using referenceClip rather than targ…
Mr.doob 4 жил өмнө
parent
commit
1f4aeca928

+ 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