Переглянути джерело

GLTFLoader: Name interpolantFactoryMethodGLTFCubicSpline function

Takahiro 7 роки тому
батько
коміт
ec53ae71c7
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      examples/js/loaders/GLTFLoader.js

+ 1 - 1
examples/js/loaders/GLTFLoader.js

@@ -2453,7 +2453,7 @@ THREE.GLTFLoader = ( function () {
 							// Overrides .createInterpolant in a factory method which creates custom interpolation.
 							// Overrides .createInterpolant in a factory method which creates custom interpolation.
 							if ( sampler.interpolation === 'CUBICSPLINE' ) {
 							if ( sampler.interpolation === 'CUBICSPLINE' ) {
 
 
-								track.createInterpolant = function ( result ) {
+								track.createInterpolant = function InterpolantFactoryMethodGLTFCubicSpline( result ) {
 
 
 									// A CUBICSPLINE keyframe in glTF has three output values for each input value,
 									// A CUBICSPLINE keyframe in glTF has three output values for each input value,
 									// representing inTangent, splineVertex, and outTangent. As a result, track.getValueSize()
 									// representing inTangent, splineVertex, and outTangent. As a result, track.getValueSize()