Pārlūkot izejas kodu

Fix GLTFExporter processAnimation(), KeyframeTrack does not have interpolation then we need to use .getInterpolation()

Takahiro 7 gadi atpakaļ
vecāks
revīzija
7dd34462b4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      examples/js/exporters/GLTFExporter.js

+ 1 - 1
examples/js/exporters/GLTFExporter.js

@@ -938,7 +938,7 @@ THREE.GLTFExporter.prototype = {
 
 					input: processAccessor( new THREE.BufferAttribute( track.times, inputItemSize ) ),
 					output: processAccessor( new THREE.BufferAttribute( track.values, outputItemSize ) ),
-					interpolation: track.interpolation === THREE.InterpolateDiscrete ? 'STEP' : 'LINEAR'
+					interpolation: track.getInterpolation() === THREE.InterpolateDiscrete ? 'STEP' : 'LINEAR'
 
 				} );