Browse Source

GLTFLoader: Add isInterpolantFactoryMethodGLTFCubicSpline to InterpolantFactoryMethodGLTFCubicSpline

Takahiro 7 years ago
parent
commit
ed629aec0f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      examples/js/loaders/GLTFLoader.js

+ 4 - 0
examples/js/loaders/GLTFLoader.js

@@ -2463,6 +2463,10 @@ THREE.GLTFLoader = ( function () {
 
 								};
 
+								// Workaround, provide an alternate way to know if the interpolant type is cubis spline to track.
+								// track.getInterpolation() doesn't return valid value for custom interpolant.
+								track.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline = true;
+
 							}
 
 							tracks.push( track );