Просмотр исходного кода

GLTFLoader: Add isInterpolantFactoryMethodGLTFCubicSpline to InterpolantFactoryMethodGLTFCubicSpline

Takahiro 8 лет назад
Родитель
Сommit
ed629aec0f
1 измененных файлов с 4 добавлено и 0 удалено
  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 );
 							tracks.push( track );

粤ICP备19079148号